/* founder-widget.css — floating "Chat with the Founder" WhatsApp card.
 *
 * Shared public-site component. Markup is rendered by public/js/founder-widget.js
 * so the copy and the wa.me link live in one place. Only the WhatsApp icon uses
 * channel green (#25D366); the rest of the card stays on the neutral public site
 * surface so it reads as a direct line to the founder, not a support chatbot.
 */

.founder-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--fw-lift, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(290px, calc(100vw - 32px));
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line, #e1e7fb);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #182033);
  font-family: var(--font-text, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12), 0 2px 5px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.founder-widget:hover,
.founder-widget:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line, #e1e7fb);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16), 0 3px 8px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.founder-widget:active {
  transform: translateY(0);
}

.founder-widget:focus-visible {
  outline: 2px solid #12854a;
  outline-offset: 3px;
}

.founder-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
  animation: fw-gentle-pulse 8s ease-in-out infinite;
}

@keyframes fw-gentle-pulse {
  0%, 3%, 8%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }

  5% {
    box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.18);
  }
}

.founder-widget__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: #fff;
}

.founder-widget__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.founder-widget__kicker {
  color: var(--muted, #667085);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.founder-widget__title {
  margin-top: 1px;
  color: var(--ink, #182033);
  font-family: var(--font-display, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.founder-widget__sub {
  margin-top: 2px;
  color: var(--muted, #667085);
  font-size: 11px;
  line-height: 1.3;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .founder-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--fw-lift, 0px));
    gap: 8px;
    max-width: min(262px, calc(100vw - 24px));
    padding: 7px 11px 7px 7px;
    border-radius: 11px;
  }

  .founder-widget__icon {
    width: 24px;
    height: 24px;
  }

  .founder-widget__icon svg {
    width: 15px;
    height: 15px;
  }

  .founder-widget__kicker {
    font-size: 10.5px;
  }

  .founder-widget__title {
    font-size: 13px;
  }

  .founder-widget__sub {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder-widget {
    transition: none;
  }

  .founder-widget__icon {
    animation: none;
  }

  .founder-widget:hover,
  .founder-widget:focus-visible {
    transform: none;
  }
}

@media print {
  .founder-widget {
    display: none;
  }
}
