/* Nancy voice-call overlay styling (nancy-voice build, 2026-07-19).
   The overlay shell itself (.pepper-call-overlay, .pc-orb, .pc-name, .pc-status, .pc-timer,
   .pc-talk, .pc-hang, .pc-legal) is still built and inline-styled inside pepper-call.js on
   purpose - that keeps the call screen fully functional even if this stylesheet fails to load.
   This file ONLY carries the new live-caption styling (build item #3), scoped so it can't
   collide with anything the site's own pepper-chat.css defines. No selectors were moved out of
   pepper-chat.css - an audit of that file found no existing call-overlay rules to move (the
   overlay has always been 100% inline in pepper-call.js); see deploy-notes.md. */

.pepper-call-overlay .pc-captions {
  width: 100%;
  max-width: 460px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pepper-call-overlay .pc-captions.pc-captions--active {
  opacity: 1;
  transform: translateY(0);
}

.pepper-call-overlay .pc-cap-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  min-height: 1.6em;
}

.pepper-call-overlay .pc-cap-line.pc-cap-empty {
  display: none;
}

.pepper-call-overlay .pc-cap-role {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.9;
  opacity: 0.85;
}

.pepper-call-overlay .pc-cap-user .pc-cap-role {
  color: #5eead4;
}

.pepper-call-overlay .pc-cap-assistant .pc-cap-role {
  color: #ffd9a8;
}

.pepper-call-overlay .pc-cap-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  opacity: 0.92;
  display: block;
  max-height: 6em;
  overflow-y: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #73b6bd transparent;
  -webkit-overflow-scrolling: touch;
}

.pepper-call-overlay .pc-cap-body { flex: 1 1 auto; min-width: 0; }
.pepper-call-overlay .pc-cap-assistant.is-expanded .pc-cap-text { max-height: min(30vh, 260px); max-height: min(30dvh, 260px); }
.pepper-call-overlay .pc-cap-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 6px; padding: 6px 0 0; border: 0; border-top: 1px solid rgba(180, 225, 229, 0.18); border-radius: 0; background: transparent; color: #b9edf0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.pepper-call-overlay .pc-cap-toggle[hidden] { display: none; }
.pepper-call-overlay .pc-cap-toggle:hover { color: #fff; }
.pepper-call-overlay .pc-cap-toggle svg { width: 16px; height: 16px; flex: none; }
.pepper-call-overlay .pc-cap-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.pepper-call-overlay .pc-cap-text:focus-visible { outline: 2px solid #a0e4ee; outline-offset: 3px; border-radius: 3px; }
body.nancy-call-open { overflow: hidden; }
body.nancy-call-open #pepper-launcher, body.surya-live-call-open #pepper-launcher { visibility: hidden; }
.pepper-call-overlay { box-sizing: border-box; top: var(--pc-viewport-top, 0px) !important; bottom: auto !important; height: var(--pc-viewport-height, 100dvh); overflow: hidden; overscroll-behavior: contain; justify-content: flex-start !important; padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) !important; }
.pepper-call-overlay .pc-content { width: 100%; min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pepper-call-overlay .pc-content > * { flex-shrink: 0; }
.pepper-call-overlay .pc-status { min-height: 2.9em; }
.pepper-call-overlay .pc-legal { position: static !important; flex: none; }
.pc-eyebrow { color: #b8dce2; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; }
.pc-controls { display: flex; flex: none; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; padding-bottom: 0; }
.pepper-call-overlay .pc-talk, .pepper-call-overlay .pc-hang { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 76px; min-height: 68px; padding: 10px 14px; border-radius: 20px; color: #e9f7f9; border: 1px solid rgba(164, 218, 227, 0.5); background: rgba(164, 218, 227, 0.07); font: inherit; cursor: pointer; transition: background 150ms; }
.pepper-call-overlay .pc-talk:hover { background: rgba(164, 218, 227, 0.16); }
.pepper-call-overlay .pc-talk.is-answer { color: #fff; border-color: #4ade80; background: #15803d; }
.pepper-call-overlay .pc-talk.is-answer:hover { background: #166534; }
.pepper-call-overlay .pc-talk.is-muted { color: #ffd6d0; border-color: #ffaaa0; background: #71363a; }
.pepper-call-overlay .pc-icon-mute-slash { display: none; }
.pepper-call-overlay .pc-talk.is-muted .pc-icon-mute-slash { display: block; }
.pepper-call-overlay .pc-talk.is-muted { position: relative; }
.pepper-call-overlay .pc-talk.is-muted::after { content: ""; position: absolute; width: 30px; border-top: 2px solid currentColor; transform: rotate(-45deg); top: 28px; left: 50%; margin-left: -15px; pointer-events: none; }
.pepper-call-overlay .pc-talk .pc-icon-answer, .pepper-call-overlay .pc-talk.is-answer .pc-icon-mic { display: none; }
.pepper-call-overlay .pc-talk.is-answer .pc-icon-answer { display: block; }
.pepper-call-overlay .pc-hang { color: #ffe4e1; border-color: rgba(255, 180, 169, 0.45); background: #88373a; }
.pepper-call-overlay .pc-hang:hover { background: #a04448; }
.pc-controls svg { display: block; width: 25px; height: 25px; flex: none; }
.pc-control-label { font-size: 11px; font-weight: 600; line-height: 1.15; }
.pepper-call-overlay.has-error .pc-talk { display: none !important; }
.pepper-call-overlay.has-error .pc-hang { color: #e9f7f9; background: #25535c; border: 1px solid #54828c; }
.pepper-call-overlay.has-phone { height: var(--pc-viewport-height, 100dvh) !important; top: var(--pc-viewport-top, 0px) !important; bottom: auto !important; padding: max(10px, env(safe-area-inset-top)) 18px max(10px, env(safe-area-inset-bottom)) !important; }
.pepper-call-overlay.has-phone .pc-content { justify-content: flex-start; gap: 3px; overflow: hidden; }
.pepper-call-overlay.has-phone .pc-orb { display: none; }
.pepper-call-overlay.has-phone .pc-eyebrow { font-size: 10px; }
.pepper-call-overlay.has-phone .pc-name { margin-top: 0 !important; font-size: 19px !important; }
.pepper-call-overlay.has-phone .pc-status, .pepper-call-overlay.has-phone .pc-timer { margin-top: 0 !important; }
.pepper-call-overlay.has-phone .pc-captions { display: none; }
.pepper-call-overlay button:focus-visible, .pepper-call-overlay input:focus-visible { outline: 3px solid #a0e4ee; outline-offset: 3px; }
.pc-phone { box-sizing: border-box; width: min(100%, 340px); margin-top: 4px; padding: 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); text-align: left; }
.pepper-call-overlay.has-phone .pc-phone { flex: 1 1 auto; min-height: 0; margin: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 6px; overflow: hidden; }
.pc-phone[hidden], .pc-phone [hidden] { display: none; }
.pc-phone label { display: block; margin-bottom: 8px; color: #e0f3f6; font-size: 13px; font-weight: 600; }
.pepper-call-overlay.has-phone .pc-phone label { margin: 0; }
.pc-phone input { box-sizing: border-box; width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid #54828c; border-radius: 12px; background: #06222a; color: #fff; font: 20px/1.4 ui-monospace, monospace; letter-spacing: 0.05em; }
.pc-phone input[aria-invalid="true"] { border-color: #ffb7ac; }
.pc-phone p { min-height: 2.9em; margin: 0 0 8px; color: #c3e0e5; font-size: 12px; line-height: 1.45; }
.pepper-call-overlay.has-phone .pc-phone p { min-height: 0; margin: 0; }
.pc-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pepper-call-overlay.has-phone .pc-keypad { min-height: 0; grid-auto-rows: minmax(34px, 1fr); }
.pc-keypad button { display: grid; place-items: center; min-height: 44px; padding: 4px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; color: #f4fafb; background: rgba(255,255,255,0.07); font: inherit; font-size: 22px; line-height: 1.2; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.pepper-call-overlay.has-phone .pc-keypad button { min-height: 0; height: 100%; }
.pc-keypad button:hover { background: rgba(255,255,255,0.16); }
.pc-keypad svg { width: 24px; height: 24px; }
.pc-phone-actions { display: flex; gap: 8px; margin-top: 10px; }
.pepper-call-overlay.has-phone .pc-phone-actions { margin-top: 0; }
.pc-phone-actions button { flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid #92cbd4; border-radius: 12px; color: #07303a; background: #b3e4ec; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pc-phone-edit { background: transparent !important; color: #d3eff2 !important; }
.pc-phone button:disabled { opacity: 0.45; cursor: default; }
@media (max-height: 740px) {
  .pepper-call-overlay.has-phone .pc-orb, .pepper-call-overlay.has-phone .pc-cap-user { display: none; }
  .pepper-call-overlay.has-phone { gap: 3px !important; }
  .pepper-call-overlay.has-phone .pc-controls { min-height: 54px; margin-top: 0; }
  .pepper-call-overlay.has-phone .pc-talk, .pepper-call-overlay.has-phone .pc-hang { min-height: 54px; min-width: 70px; padding: 7px 12px; }
  .pepper-call-overlay.has-phone .pc-legal { display: none; }
}

/* A browser may temporarily report a compact visual viewport while its chrome
   settles. The keypad stays entirely above the persistent call controls. */
@media (max-height: 560px) {
  .pepper-call-overlay.has-phone { padding: 5px 12px 6px !important; }
  .pepper-call-overlay.has-phone .pc-eyebrow, .pepper-call-overlay.has-phone .pc-name { display: none; }
  .pepper-call-overlay.has-phone .pc-status { min-height: 1.5em; font-size: 12px; line-height: 1.3; }
  .pepper-call-overlay.has-phone .pc-phone { padding: 7px; gap: 4px; }
  .pepper-call-overlay.has-phone .pc-phone input { min-height: 40px; font-size: 18px; }
  .pepper-call-overlay.has-phone .pc-phone p { font-size: 11px; line-height: 1.25; }
  .pepper-call-overlay.has-phone .pc-keypad { gap: 4px; grid-auto-rows: minmax(28px, 1fr); }
  .pepper-call-overlay.has-phone .pc-keypad button { border-radius: 10px; font-size: 18px; }
  .pepper-call-overlay.has-phone .pc-keypad svg { width: 20px; height: 20px; }
  .pepper-call-overlay.has-phone .pc-phone-actions button { min-height: 40px; padding: 7px 10px; }
  .pepper-call-overlay.has-phone .pc-controls { min-height: 48px; }
  .pepper-call-overlay.has-phone .pc-talk, .pepper-call-overlay.has-phone .pc-hang { min-height: 48px; min-width: 66px; padding: 6px 10px; }
}

.pepper-call-overlay.has-phone.is-compact-viewport { padding: 5px 12px 6px !important; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-eyebrow, .pepper-call-overlay.has-phone.is-compact-viewport .pc-name { display: none; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-status { min-height: 1.5em; font-size: 12px; line-height: 1.3; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-phone { padding: 7px; gap: 4px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-phone input { min-height: 40px; font-size: 18px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-phone p { font-size: 11px; line-height: 1.25; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-keypad { gap: 4px; grid-auto-rows: minmax(28px, 1fr); }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-keypad button { border-radius: 10px; font-size: 18px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-keypad svg { width: 20px; height: 20px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-phone-actions button { min-height: 40px; padding: 7px 10px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-controls { min-height: 48px; }
.pepper-call-overlay.has-phone.is-compact-viewport .pc-talk, .pepper-call-overlay.has-phone.is-compact-viewport .pc-hang { min-height: 48px; min-width: 66px; padding: 6px 10px; }

@media (max-width: 380px) {
  .pepper-call-overlay .pc-captions {
    max-width: 100%;
  }
}

/* Human call bridge. It echoes Nancy's full-screen call language while keeping the connected
   state distinct and readable in both site themes. */
body.surya-live-call-open { overflow: hidden; }

.surya-live-call {
  position: fixed;
  inset: 0;
  z-index: 2147482001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px max(22px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom));
  color: #f8fbfc;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(47, 125, 138, 0.36), transparent 34%),
    linear-gradient(165deg, #13262d 0%, #0c171c 68%, #071013 100%);
}

.surya-live-call[hidden] { display: none; }

.slc-orb {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(92, 192, 209, 0.1);
  box-shadow: 0 0 0 1px rgba(138, 216, 228, 0.18), 0 22px 70px rgba(0, 0, 0, 0.34);
}

.slc-orb span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f7ffff, #5cc0d1 28%, #155f70 72%);
  box-shadow: 0 0 0 12px rgba(92, 192, 209, 0.08);
  animation: slc-pulse 1.8s ease-in-out infinite;
}

.surya-live-call.is-connected .slc-orb span { background: radial-gradient(circle at 32% 28%, #fff, #86efac 30%, #15803d 72%); }

@keyframes slc-pulse {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 10px rgba(92, 192, 209, 0.08); }
  50% { transform: scale(1); box-shadow: 0 0 0 18px rgba(92, 192, 209, 0.02); }
}

.slc-eyebrow { color: #8ad8e4; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.surya-live-call h2 { margin: 0; color: #fff; font-size: clamp(2rem, 8vw, 3.2rem); letter-spacing: -0.04em; }
.slc-status { min-height: 1.5em; margin: 0; color: #c4d4d9; font-size: 0.98rem; }
.slc-timer { min-height: 1.4em; color: #a3b5bb; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.slc-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.slc-mute { min-width: 132px; min-height: 54px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(138, 216, 228, 0.35); border-radius: 999px; color: #fff; background: rgba(92, 192, 209, 0.16); font: inherit; font-weight: 800; cursor: pointer; }
.slc-mute.is-muted { color: #ffd6d0; background: #71363a; }
.slc-mute svg { width: 24px; height: 24px; }
.surya-live-call.has-error .slc-mute { display: none; }
.slc-audio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.slc-hangup {
  min-width: 148px;
  min-height: 54px;
  margin-top: 0;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: #b4232f;
  box-shadow: 0 12px 34px rgba(180, 35, 47, 0.3);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.slc-hangup svg { width: 23px; height: 23px; }
.slc-hangup:hover { background: #c92b39; }
.slc-hangup:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.slc-privacy { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 22px; color: #789097; font-size: 0.72rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .slc-orb span { animation: none; }
}


