/* Embedded James's Assistant drawer for demos.sitsit.dev. Uses tokens from /sales/sales.css. */
.jc-panel {
  --ai-stops: #3b4fd8, #6577e4 18%, #d5dafa 30%, #9fabf0 42%, #3b4fd8 58%, #7b6cf0 74%, #c7cdf8 86%, #3b4fd8;
  position: fixed;
  inset: 0;
  z-index: 60;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  color: var(--fg, #09090b);
  font-family: var(--font, Geist, ui-sans-serif, system-ui, sans-serif);
  transform-origin: calc(100% - 28px) calc(100% - 24px);
  animation: jc-pop-in 0.32s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.jc-panel.is-closing {
  animation: jc-pop-out 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}
.jc-panel:focus {
  outline: none;
}
.jc-ring {
  display: none;
}
.jc-inner {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--canvas, #ffffff);
}
@media (min-width: 640px) {
  .jc-panel {
    inset: auto 20px 20px auto;
    width: 396px;
    height: min(620px, calc(100dvh - 40px));
    border-radius: 16px;
    padding: 1.5px;
    box-shadow:
      0 1px 2px rgb(9 9 11 / 0.04),
      0 16px 40px -20px rgb(9 9 11 / 0.16);
  }
  .jc-inner {
    border-radius: 14.5px;
  }
  .jc-ring {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
  }
  .jc-ring::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    aspect-ratio: 1;
    background: conic-gradient(from 0deg, var(--ai-stops));
    transform: translate(-50%, -50%);
  }
  .jc-panel::before {
    content: "";
    position: absolute;
    inset: 1px 0 -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(100deg, #9fabf0, #3b4fd8 35%, #7b6cf0 65%, #c7cdf8);
    filter: blur(8px);
    opacity: 0.3;
    pointer-events: none;
  }
}
@media (min-width: 640px) and (prefers-reduced-motion: no-preference) {
  .jc-ring::before {
    animation: jc-ai-spin 4s linear infinite;
    will-change: transform;
  }
  .jc-panel::before {
    animation: jc-ai-breathe 3.2s ease-in-out infinite;
    will-change: opacity;
  }
}
@keyframes jc-ai-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes jc-ai-breathe {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 0.38;
  }
}
@keyframes jc-pop-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes jc-pop-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.92);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jc-panel,
  .jc-panel.is-closing {
    animation: none !important;
  }
}
.jc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line, #e4e4e7);
}
.jc-title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg, #09090b);
}
.jc-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--fg-4, #71717a);
}
.jc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--fg-3, #52525b);
  cursor: pointer;
}
.jc-close:hover {
  background: var(--muted, #f4f4f5);
  color: var(--fg, #09090b);
}
.jc-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong, #d4d4d8) transparent;
}
.jc-msg {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2, #3f3f46);
  overflow-wrap: break-word;
}
.jc-msg-user {
  margin-left: auto;
  width: fit-content;
  max-width: 86%;
  border-radius: 16px;
  background: var(--muted, #f4f4f5);
  padding: 10px 16px;
  color: var(--fg, #09090b);
}
.jc-thinking {
  color: var(--fg-4, #71717a);
}
.jc-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jc-link:hover {
  color: var(--accent, #3b4fd8);
}
.jc-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.jc-notice {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-3, #52525b);
}
.jc-notice a {
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 6px;
}
.jc-notice a:hover {
  color: var(--fg, #09090b);
}
.jc-hint {
  margin: 0;
  padding: 8px 20px;
  border-top: 1px solid var(--line, #e4e4e7);
  background: var(--subtle, #fafafa);
  font-size: 12px;
  color: var(--fg-3, #52525b);
}
.jc-form {
  padding: 12px 16px 12px;
  border-top: 1px solid var(--line, #e4e4e7);
}
.jc-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 16px;
  border: 1px solid var(--line-strong, #d4d4d8);
  background: var(--canvas, #ffffff);
  box-shadow: 0 1px 2px rgb(9 9 11 / 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.jc-box:hover {
  border-color: var(--line-hover, #a1a1aa);
}
.jc-box:focus-within {
  border-color: var(--line-hover, #a1a1aa);
  box-shadow: 0 1px 4px rgb(9 9 11 / 0.08);
}
.jc-input {
  min-width: 0;
  flex: 1;
  min-height: 44px;
  max-height: 220px;
  resize: none;
  overflow-y: auto;
  border: 0;
  background: transparent;
  padding: 10px 48px 10px 14px;
  color: var(--fg, #09090b);
  font-size: 15px;
  line-height: 1.45;
}
.jc-input::placeholder {
  color: var(--fg-4, #71717a);
}
.jc-input:focus,
.jc-input:focus-visible {
  outline: none;
}
.jc-input:disabled {
  opacity: 0.6;
}
.jc-send,
.jc-stop {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.jc-send {
  background: var(--fg, #09090b);
  color: var(--canvas, #ffffff);
}
.jc-send:hover:not(:disabled) {
  background: var(--fg-hover, #27272a);
}
.jc-send:active:not(:disabled) {
  transform: scale(0.95);
}
.jc-send:disabled {
  background: var(--muted, #f4f4f5);
  color: var(--fg-4, #71717a);
  cursor: not-allowed;
}
.jc-stop {
  background: var(--muted, #f4f4f5);
  color: var(--fg, #09090b);
}
.jc-stop:hover {
  background: var(--line, #e4e4e7);
}
.jc-stop-sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
}
.jc-foot {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 12px;
  color: var(--fg-4, #71717a);
}
.jc-foot a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jc-foot a:hover {
  color: var(--fg, #09090b);
}
.jc-sublink {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-3, #52525b);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.jc-sublink:hover {
  color: var(--fg, #09090b);
}
/* Keep the longer top navbar CTA ("Start a project with me") on one line and comfortable on narrow phones. */
.nav-in {
  gap: 12px;
}
.wordmark,
.nav .btn-sm {
  white-space: nowrap;
}
@media (max-width: 479px) {
  .nav .btn-sm {
    height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}
@media (min-width: 640px) {
  .nav-in {
    gap: 24px;
  }
}
