/* ── YouPush tool bridge ────────────────────────────────────────────────────
   The handoff block that appears under a tool's result once the user has
   something in hand. Inline, never a modal: these pages promise "no signup,
   nothing uploaded", and an overlay at the moment of success breaks that
   promise exactly when the trust was earned.

   Consumes the tool pages' shared tokens (--panel, --line, --text, --mut,
   --violet, --good, --display, --body), which are identical across
   tools/background and tools/transcript-cleaner. The shorts-preview Vite build
   mirrors the same tokens in tools/shorts-preview/src/index.css.
   ─────────────────────────────────────────────────────────────────────────── */

.ypb {
  display: none;
  margin: 18px auto 0;
  border: 1px solid var(--line, #2a2a33);
  border-radius: 16px;
  background: var(--panel, #131318);
  overflow: hidden;
  font-family: var(--body, "Inter", -apple-system, system-ui, sans-serif);
}

.ypb.is-open {
  display: block;
  animation: ypb-in .32s ease both;
}

@keyframes ypb-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ypb.is-open { animation: none; }
}

/* ── Offer (primary) ── */

.ypb-offer { padding: 20px 22px 18px; }

.ypb-done {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--good, #10b981);
  margin: 0 0 10px;
}

.ypb-done::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--good, #10b981);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.4 3.3 8.5l1.1-1.1 1.8 1.8 5.4-5.4 1.1 1.1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.4 3.3 8.5l1.1-1.1 1.8 1.8 5.4-5.4 1.1 1.1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ypb-h {
  font-family: var(--display, "Bricolage Grotesque", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text, #f4f4f7);
  margin: 0 0 6px;
}

.ypb-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mut, #a8a8b5);
  margin: 0 0 14px;
  max-width: 60ch;
}

.ypb-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ypb-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: var(--text, #f4f4f7);
  background: var(--panel-2, #1c1c22);
  border: 1px solid var(--line, #2a2a33);
  border-radius: 10px;
  padding: 11px 13px;
}

.ypb-form input[type="email"]::placeholder { color: var(--faint, #6b6b78); }

.ypb-form input[type="email"]:focus {
  outline: none;
  border-color: var(--violet, #4a8cff);
  box-shadow: 0 0 0 3px rgba(74, 140, 255, .18);
}

.ypb-send {
  flex: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--violet, #4a8cff);
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
}

.ypb-send:hover:not(:disabled) { background: var(--violet-2, #2f6ee0); }
.ypb-send:disabled { opacity: .6; cursor: default; }

.ypb-fine {
  font-size: 12px;
  color: var(--faint, #6b6b78);
  margin: 10px 0 0;
}

.ypb-msg { font-size: 13px; margin: 10px 0 0; }
.ypb-msg.is-err { color: var(--red, #f87171); }
.ypb-msg.is-ok  { color: var(--good, #10b981); }

/* Honeypot: bots fill it, humans never see it. */
.ypb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Next step (secondary) ── */

.ypb-next {
  border-top: 1px solid var(--line, #2a2a33);
  background: rgba(255, 255, 255, .015);
  padding: 15px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  justify-content: space-between;
}

.ypb-next p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--mut, #a8a8b5);
  max-width: 62ch;
}

.ypb-next a {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--violet, #4a8cff);
  text-decoration: none;
  white-space: nowrap;
}

.ypb-next a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .ypb-offer { padding: 17px 16px 15px; }
  .ypb-next  { padding: 13px 16px; }
  .ypb-send  { flex: 1 1 auto; }
}
