/* PrivatePay AI block — password-gated landing drafts */

.pp-assistant {
  padding: 80px 0 72px;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(119, 227, 194, 0.16), transparent 50%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(20, 62, 60, 0.06), transparent 45%),
    linear-gradient(180deg, #f3faf8 0%, #ffffff 42%, #ffffff 100%);
}

.pp-assistant__inner {
  width: calc(100% - 48px);
  max-width: 1128px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  grid-template-areas:
    "copy panel"
    "grid grid"
    "note note";
  gap: 36px 56px;
  align-items: start;
}

.pp-assistant__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 8px;
}

.pp-assistant__eyebrow {
  margin: 0;
  color: var(--color-dark-mint);
  font-size: 12px;
  font-weight: var(--font-w-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-assistant__heading {
  margin: 0;
  max-width: 540px;
  color: var(--color-dark-mint);
  font-size: 42px;
  font-weight: var(--font-w-medium);
  letter-spacing: -0.84px;
  line-height: 1.05;
}

.pp-assistant__subheading {
  margin: 0;
  max-width: 520px;
  color: var(--color-dark-mint-80);
  font-size: 17px;
  line-height: 1.55;
}

/* —— AI workspace panel —— */
.pp-assistant__panel {
  grid-area: panel;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(119, 227, 194, 0.18), transparent 55%),
    linear-gradient(165deg, #001412 0%, #0a2a28 48%, #143e3c 100%);
  box-shadow:
    0 24px 56px rgba(0, 28, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}

.pp-assistant--business .pp-assistant__panel {
  height: 560px;
  min-height: 560px;
  max-height: 560px;
}

.pp-assistant__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

.pp-assistant__panel-bar {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.pp-assistant__ai-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #d2f3f1;
  color: #093331;
  flex-shrink: 0;
  overflow: visible;
}

.pp-assistant__ai-mark img {
  width: 14px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.pp-assistant__panel-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pp-assistant__panel-label {
  color: #fff;
  font-size: 14px;
  font-weight: var(--font-w-medium);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pp-assistant__panel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1;
}

.pp-assistant__panel-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #77e3c2;
  box-shadow: 0 0 0 0 rgba(119, 227, 194, 0.55);
  animation: pp-assistant-pulse 1.8s ease-out infinite;
}

@keyframes pp-assistant-pulse {
  0% { box-shadow: 0 0 0 0 rgba(119, 227, 194, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(119, 227, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(119, 227, 194, 0); }
}

.pp-assistant__panel-chip {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(119, 227, 194, 0.35);
  background: rgba(119, 227, 194, 0.1);
  color: #d2f3f1;
  font-size: 10px;
  font-weight: var(--font-w-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-assistant__chat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 10px;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.pp-assistant__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 100%;
  animation: pp-assistant-in 0.4s ease both;
}

.pp-assistant__row--user {
  flex-direction: row-reverse;
}

.pp-assistant__avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: var(--font-w-medium);
  letter-spacing: 0.02em;
}

.pp-assistant__avatar--ai {
  background: rgba(119, 227, 194, 0.18);
  color: #77e3c2;
  border: 1px solid rgba(119, 227, 194, 0.35);
  overflow: visible;
}

.pp-assistant__avatar--ai img {
  width: 11px;
  height: 14px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.pp-assistant__avatar--user {
  background: #d2f3f1;
  color: var(--color-dark-mint);
}

.pp-assistant__msg {
  min-width: 0;
  max-width: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-assistant__bubble {
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.pp-assistant__bubble--bot {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 5px;
}

.pp-assistant__bubble--user {
  background: #d2f3f1;
  color: var(--color-dark-mint);
  border-top-right-radius: 5px;
  font-weight: var(--font-w-medium);
}

.pp-assistant__steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-assistant__step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.pp-assistant__step.is-done {
  color: #d2f3f1;
}

.pp-assistant__step.is-active {
  color: #fff;
}

.pp-assistant__step-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 9px;
}

.pp-assistant__step.is-done .pp-assistant__step-mark {
  border-color: #77e3c2;
  background: #77e3c2;
  color: #001c1b;
}

.pp-assistant__step.is-active .pp-assistant__step-mark {
  border-color: #77e3c2;
  box-shadow: 0 0 0 3px rgba(119, 227, 194, 0.18);
}

.pp-assistant__confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pp-assistant__confirm-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #77e3c2;
  color: #001c1b;
  font-size: 12px;
  font-weight: var(--font-w-medium);
  line-height: 1;
  cursor: default;
  pointer-events: none;
}

.pp-assistant__confirm-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pp-assistant__typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  padding: 12px 14px;
}

.pp-assistant__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: pp-assistant-dot 1.1s infinite ease-in-out;
}

.pp-assistant__typing span:nth-child(2) { animation-delay: 0.15s; }
.pp-assistant__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pp-assistant-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes pp-assistant-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pp-assistant__file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(119, 227, 194, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(119, 227, 194, 0.28);
  color: #fff;
}

.pp-assistant__file-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #d2f3f1;
  color: var(--color-dark-mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-assistant__file-title {
  font-size: 12.5px;
  font-weight: var(--font-w-medium);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-assistant__file-meta {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.pp-assistant__file-link {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #77e3c2;
  color: #001c1b;
  font-size: 12px;
  font-weight: var(--font-w-medium);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pp-assistant__file-link:hover {
  filter: brightness(1.05);
}

.pp-assistant__composer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pp-assistant__composer.is-typing {
  border-color: rgba(119, 227, 194, 0.55);
  background: rgba(119, 227, 194, 0.12);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(119, 227, 194, 0.2);
}

.pp-assistant__composer.is-sending .pp-assistant__composer-send {
  transform: scale(0.92);
  filter: brightness(1.08);
}

.pp-assistant__composer-text {
  min-width: 0;
  flex: 1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-assistant__composer-text.has-caret::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -1px;
  background: #77e3c2;
  animation: pp-assistant-caret 0.9s steps(1) infinite;
}

@keyframes pp-assistant-caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.pp-assistant__composer-send {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-left: auto;
  display: grid;
  place-items: center;
  background: rgba(119, 227, 194, 0.9);
  color: #001c1b;
  flex-shrink: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* —— Capability ticker (single-row credits scroll) —— */
.pp-assistant__grid {
  grid-area: grid;
  position: relative;
  margin: 4px 0 0;
  padding: 8px 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.pp-assistant__ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.pp-assistant__ticker-track {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.pp-assistant__card {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 36px 0 0;
  background: transparent;
  border: 0;
  white-space: nowrap;
  color: var(--color-dark-mint-60);
  transition: color 0.35s ease;
}

.pp-assistant__card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(9, 51, 49, 0.22);
  transform: translateY(-50%);
}

.pp-assistant__card-title {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: var(--font-w-medium);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.pp-assistant__card.is-active {
  color: var(--color-dark-mint);
}

.pp-assistant__card-check {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #77e3c2;
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.pp-assistant__card.is-checked .pp-assistant__card-check {
  opacity: 1;
  transform: scale(1);
}

.pp-assistant__card-check-ring {
  opacity: 0.35;
  transform-origin: center;
  transition: opacity 0.3s ease;
}

.pp-assistant__card.is-checked .pp-assistant__card-check-ring {
  opacity: 1;
}

.pp-assistant__card-check-mark {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.4s ease 0.08s;
}

.pp-assistant__card.is-checked .pp-assistant__card-check-mark {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pp-assistant__ticker-track {
    transform: none !important;
  }

  .pp-assistant__card-check,
  .pp-assistant__card-check-mark,
  .pp-assistant__card-check-ring {
    transition: none;
  }

  .pp-assistant__card .pp-assistant__card-check {
    opacity: 1;
    transform: scale(1);
  }

  .pp-assistant__card .pp-assistant__card-check-mark {
    stroke-dashoffset: 0;
  }
}

.pp-assistant__note {
  grid-area: note;
  margin: 4px 0 0;
  max-width: 780px;
  color: var(--color-dark-mint-60);
  font-size: 13px;
  line-height: 1.5;
}

.pp-assistant-draft-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  text-align: center;
  background: #143e3c;
  color: #fff;
  font-size: 13px;
  font-weight: var(--font-w-medium);
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .pp-assistant {
    padding: 56px 16px 48px;
  }

  .pp-assistant__inner {
    width: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "panel"
      "grid"
      "note";
    gap: 28px;
  }

  .pp-assistant__heading {
    font-size: 32px;
  }

  .pp-assistant__subheading {
    font-size: 16px;
  }

  .pp-assistant__panel {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
  }

  .pp-assistant--business .pp-assistant__panel {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }

  .pp-assistant__card-title {
    font-size: 16px;
  }

  .pp-assistant__card {
    padding-right: 28px;
  }

  .pp-assistant__card::after {
    right: 12px;
  }
}
