/* PaperBoy grow (paperboy-grow.js), 2026-11-13.1. Look tokens from platform/look/paperboy-look.css. */
.pbg-after, .pbg-sheet, .pbg-offer {
  --pbg-paper: #f7f4eb; --pbg-ink: #101010; --pbg-muted: #5b5850; --pbg-line: #dcd6c6;
  --pbg-teal: #0c6863; --pbg-red: #c83222; --pbg-navy: #14213d; --pbg-card: #fffdf7;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--pbg-ink);
}
.pbg-after { display: grid; gap: 14px; margin-top: 18px; }
.pbg-after:empty { display: none; }

/* buttons */
.pbg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--pbg-ink); border-radius: 6px; background: transparent; color: var(--pbg-ink);
  font: 600 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.pbg-btn:hover { background: rgba(16, 16, 16, .05); }
.pbg-btn:focus-visible, .pbg-share:focus-visible, .pbg-link:focus-visible { outline: 2px solid var(--pbg-teal); outline-offset: 2px; }
.pbg-primary { background: var(--pbg-ink); color: var(--pbg-paper); }
.pbg-primary:hover { background: #2a2a2a; }
.pbg-quiet { border-color: transparent; color: var(--pbg-muted); }
.pbg-link { background: none; border: 0; padding: 0; color: var(--pbg-teal); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pbg-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* send row: Viber, WhatsApp, share sheet, copy link */
.pbg-shares { display: flex; flex-wrap: wrap; gap: 8px; }
.pbg-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 6px;
  border: 1px solid var(--pbg-line); background: var(--pbg-card); color: var(--pbg-ink); font: 600 15px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; }
.pbg-share i { display: inline-flex; width: 22px; height: 22px; }
.pbg-share svg { width: 22px; height: 22px; }
.pbg-share:hover { border-color: var(--pbg-ink); }
.pbg-viber i { color: #7360f2; }
.pbg-whatsapp i { color: #1f9d55; }
.pbg-share-main { background: var(--pbg-ink); color: var(--pbg-paper); border-color: var(--pbg-ink); }
.pbg-tip { margin: 0; color: var(--pbg-muted); font-size: 14px; }

/* "We do it for you" */
.pbg-hire { border-left: 3px solid var(--pbg-red); background: var(--pbg-card); padding: 16px 18px; border-radius: 0 8px 8px 0; display: grid; gap: 10px; }
.pbg-hire[dir="rtl"] { border-left: 0; border-right: 3px solid var(--pbg-red); border-radius: 8px 0 0 8px; }
.pbg-hire-h { margin: 0; font: 600 18px/1.25 Fraunces, Georgia, serif; }
.pbg-hire-p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 62ch; }

/* quiet Plus line */
.pbg-nudge { margin: 0; font-size: 14px; color: var(--pbg-muted); }

/* sheet */
.pbg-sheet { position: fixed; inset: 0; z-index: 2147483000; background: rgba(16, 16, 16, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pbg-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--pbg-paper);
  border-radius: 10px; padding: 28px 28px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.pbg-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--pbg-muted); }
[dir="rtl"] .pbg-x { right: auto; left: 8px; }
.pbg-h { margin: 0 0 6px; font: 600 26px/1.15 Fraunces, Georgia, serif; }
.pbg-lead { margin: 0 0 16px; color: var(--pbg-muted); font-size: 16px; line-height: 1.45; }
.pbg-limit { margin: 0 0 14px; padding: 10px 12px; background: #f3e3dc; border-radius: 6px; font-size: 15px; }
.pbg-perks { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pbg-perks li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.4; }
.pbg-perks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--pbg-teal); border-bottom: 2px solid var(--pbg-teal); transform: rotate(-45deg); }
[dir="rtl"] .pbg-perks li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .pbg-perks li::before { left: auto; right: 2px; }
.pbg-price { margin: 0; font: 650 34px/1 Fraunces, Georgia, serif; }
.pbg-price small { font: 400 16px Fraunces, Georgia, serif; color: var(--pbg-muted); }
.pbg-small { margin: 6px 0 16px; color: var(--pbg-muted); font-size: 14px; line-height: 1.4; }

/* business details form */
.pbg-biz { display: grid; gap: 14px; }
.pbg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.pbg-field { display: grid; gap: 4px; font-size: 13px; color: var(--pbg-muted); }
.pbg-field input { min-height: 44px; padding: 0 12px; border: 1px solid var(--pbg-line); border-radius: 6px; background: #fff; color: var(--pbg-ink); font: 16px/1.2 inherit; font-family: inherit; width: 100%; box-sizing: border-box; }
.pbg-field input:focus { outline: 2px solid var(--pbg-teal); outline-offset: 0; border-color: var(--pbg-teal); }
.pbg-wide { grid-column: 1 / -1; }
.pbg-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pbg-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--pbg-line); border-radius: 6px; }
.pbg-logo[hidden] { display: none; }
.pbg-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pbg-colors { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.pbg-colors .pbg-small { margin: 0; }
.pbg-colors input { width: 40px; height: 40px; padding: 2px; border: 1px solid var(--pbg-line); border-radius: 6px; background: #fff; }

/* "save these details for every tool" */
.pbg-offer { position: fixed; z-index: 2147482000; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--pbg-paper); border: 1px solid var(--pbg-ink); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); font-size: 15px; }
.pbg-offer span { flex: 1 1 220px; }

@media (max-width: 759px) {
  .pbg-sheet { align-items: flex-end; padding: 0; }
  .pbg-panel { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); }
  .pbg-panel { padding-top: 52px; }
  .pbg-grid { gap: 8px 10px; }
  .pbg-field { font-size: 12.5px; }
  /* Send row as a 2-across grid of big tiles, not a long column */
  .pbg-shares { display: grid; grid-template-columns: 1fr 1fr; }
  .pbg-share { justify-content: center; min-height: 52px; }
  .pbg-hire .pbg-row .pbg-primary { flex: 1 1 auto; }
  .pbg-panel > .pbg-row .pbg-btn { flex: 1 1 auto; }
  .pbg-colors { margin-inline-start: 0; }
  .pbg-offer { bottom: calc(8px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .pbg-panel { animation: pbg-in .18s ease-out; }
  @keyframes pbg-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
}
