/* ============================================================================
   jade-agent.css: JADE as JoJo's AI agent on the AR card page (image-ar.html).
   2026-10-02, 8:40 PM, JoJo at a networking event: "for the ar we make it like
   spade ai. Have jade hologram in and make it more interactive. Give people the
   option to sign up or message me."

   The grammar is lifted from the SHOPLINE AI shopper (Self/Agent Office/PRODUCT/
   shopline-shopper/lib/agent.css): the agent idles bottom right with her motes, a
   greeting unfolds in three short lines, a tap slides a sheet up with quick
   replies. Restated in this page's own idiom: Inter, one accent (pink), no
   capsules, no plates behind words, hairlines instead of boxes, 44 px targets.
   The only rounded surfaces are the two elevated ones (the greeting and the
   sheet), both liquid glass with no border. No gradient anywhere in this file:
   the page carries a zero-gradient rule and this layer keeps it.
   ========================================================================== */
.jx{ --jx-pink:#ec4899; --jx-dim:rgba(255,255,255,.62); --jx-rule:rgba(255,255,255,.12);
  --jx-glass:rgba(10,10,15,.74); --jx-safe:env(safe-area-inset-bottom,0px); --jx-lift:0px; --jx-kb:0px;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:#fff;
  -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent; }
.jx *, .jx *::before, .jx *::after{ box-sizing:border-box; margin:0; }
.jx [hidden]{ display:none !important; }
/* zero specificity, so every class below keeps its own size, weight and colour */
:where(.jx) button, :where(.jx) input{ font:inherit; color:inherit; }
.jx :focus-visible{ outline:2px solid rgba(236,72,153,.7); outline-offset:2px; border-radius:6px; }
.jx input:focus-visible{ outline:none; }

/* ---- her one canvas. Body centre 54 px in from the right and 66 px up from the bottom edge
   (above the credit line and the home indicator); the canvas is 150 px so her dust has room and
   bleeds past the right edge, which the page's overflow:hidden clips. Transform only. */
.jx-orb{ position:fixed; z-index:40; width:150px; height:150px; right:-21px;
  bottom:calc(var(--jx-safe) + var(--jx-lift) - 9px); pointer-events:none; opacity:0; visibility:hidden;
  transform-origin:50% 50%; will-change:transform, opacity;
  transition:transform .62s cubic-bezier(.16,1,.3,1), opacity .3s ease-out, visibility 0s linear .3s; }
.jx-orb.on{ transition:transform .62s cubic-bezier(.16,1,.3,1), opacity .3s ease-out, visibility 0s; }
.jx-orb.on{ opacity:1; visibility:visible; }
.jx-cv{ position:absolute; inset:0; width:100%; height:100%; display:block; transform-origin:50% 54%; }
/* the hologram's scanline: one solid pink line with a pink and cyan glow, swept up her body */
.jx-scan{ position:absolute; left:29%; right:29%; top:78%; height:1.5px; border-radius:2px; opacity:0; pointer-events:none;
  background:#f472b6; box-shadow:0 0 6px rgba(236,72,153,.7), 0 0 16px rgba(34,211,238,.45); }
.jx-hit{ position:absolute; left:50%; top:50%; width:76px; height:76px; margin:-38px 0 0 -38px; border-radius:50%;
  border:0; padding:0; background:transparent; cursor:pointer; pointer-events:none; touch-action:manipulation; }
.jx-orb.on .jx-hit{ pointer-events:auto; }

/* ---- the greeting: three lines that unfold from her, on glass (the elevated surface the reference uses) */
.jx-bubble{ position:fixed; z-index:41; right:14px; bottom:calc(var(--jx-safe) + var(--jx-lift) + 112px);
  max-width:min(292px, calc(100vw - 28px)); padding:14px 17px 15px; border-radius:16px; text-align:left;
  background:var(--jx-glass); -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  box-shadow:0 18px 48px rgba(0,0,0,.38); cursor:pointer; pointer-events:auto; touch-action:manipulation;
  transform-origin:86% 100%; transform:translateY(10px) scale(.86); opacity:0;
  transition:transform .42s cubic-bezier(.16,1,.3,1), opacity .28s ease-out; }
.jx-bubble.in{ transform:none; opacity:1; }
.jx-bubble.out{ transform:translateY(6px) scale(.94); opacity:0; transition-duration:.22s; }
.jx-bubble p{ text-wrap:balance; }
.jx-bubble .l1{ font-weight:700; font-size:17px; line-height:1.22; letter-spacing:-.005em; }
.jx-bubble .l2{ margin-top:4px; font-size:14px; line-height:1.38; color:var(--jx-dim); }
.jx-bubble .l3{ margin-top:9px; font-size:15px; line-height:1.35; font-weight:600; color:var(--jx-pink); }
.jx-bubble .l1, .jx-bubble .l2, .jx-bubble .l3{ opacity:0; transform:translateY(4px); transition:opacity .3s ease-out, transform .36s cubic-bezier(.16,1,.3,1); }
.jx-bubble.in .l1{ opacity:1; transform:none; transition-delay:.08s; }
.jx-bubble.in .l2{ opacity:1; transform:none; transition-delay:.22s; }
.jx-bubble.in .l3{ opacity:1; transform:none; transition-delay:.38s; }
.jx .nb{ white-space:nowrap; }
/* the page's own aim hint sits where the greeting lands, so it steps aside while she talks */
body.jx-quiet #hint{ opacity:0; }
/* while she has the sheet up the visitor is talking, not aiming: the aim thumbnail steps out from behind the glass */
body.jx-open #aimIndicator.on{ visibility:hidden; }

/* ---- the sheet: glass from the bottom, the camera and the AR stay live above it (no scrim) */
/* the sheet is only as tall as the conversation, up to 62 percent of the screen, so the live card
   keeps the top of the frame; the thread scrolls inside once it is full */
.jx-sheet{ position:fixed; z-index:50; left:0; right:0; bottom:0; height:auto;
  max-height:min(62vh, 520px);
  max-height:min(62svh, 520px, calc(var(--jx-vh, 100svh) - 24px));
  display:flex; flex-direction:column;
  background:var(--jx-glass); -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  border-top:1px solid rgba(255,255,255,.10); border-radius:20px 20px 0 0; box-shadow:0 -24px 60px rgba(0,0,0,.36);
  padding-bottom:var(--jx-safe); transform:translateY(105%); transition:transform .46s cubic-bezier(.16,1,.3,1);
  pointer-events:auto; overscroll-behavior:contain; }
.jx.open .jx-sheet{ transform:translateY(calc(var(--jx-kb) * -1)); }
.jx-sheet.drag{ transition:none; }
/* the swipe affordance is a hairline, not a pill */
.jx-grab{ position:absolute; left:50%; top:8px; width:30px; height:2px; margin-left:-15px; border-radius:1px; background:rgba(255,255,255,.3); pointer-events:none; }
.jx-head{ flex:none; position:relative; display:flex; align-items:center; gap:8px; min-height:58px; padding:16px 6px 6px 20px; touch-action:none; cursor:grab; }
.jx-who{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.jx-who b{ font-size:11px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--jx-pink); }
.jx-who span{ font-size:15px; font-weight:600; letter-spacing:-.005em; }
.jx-x{ appearance:none; background:none; border:0; width:44px; height:44px; display:grid; place-items:center; color:rgba(255,255,255,.82); cursor:pointer; flex:none; touch-action:manipulation; }

.jx-thread{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch;
  padding:6px 20px 10px; display:flex; flex-direction:column; gap:12px; scroll-behavior:smooth; }
.jx-msg{ max-width:92%; font-size:16px; line-height:1.45; animation:jx-in .34s cubic-bezier(.16,1,.3,1) both; }
.jx-msg p{ text-wrap:pretty; }
.jx-msg.her{ align-self:flex-start; color:rgba(255,255,255,.95); }
.jx-msg.you{ align-self:flex-end; text-align:right; color:rgba(255,255,255,.66); font-weight:500; max-width:80%; }
.jx-msg.wide{ max-width:none; align-self:stretch; }
@keyframes jx-in{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.jx-typing{ align-self:flex-start; display:flex; gap:5px; padding:9px 0; }
.jx-typing i{ width:6px; height:6px; border-radius:50%; background:var(--jx-pink); opacity:.35; animation:jx-dot 1s infinite ease-in-out; }
.jx-typing i:nth-child(2){ animation-delay:.15s; } .jx-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes jx-dot{ 0%,100%{ opacity:.25; transform:translateY(0); } 50%{ opacity:1; transform:translateY(-3px); } }

/* quick replies: ink on the glass in a two column grid, a hairline over each, colour on press */
.jx-chips{ flex:none; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); column-gap:18px; padding:0 20px 2px; }
.jx-chips:empty{ display:none; }
.jx-chip{ appearance:none; background:none; border:0; border-top:1px solid var(--jx-rule); border-radius:0; min-height:48px; padding:12px 0;
  display:flex; align-items:center; justify-content:flex-start; text-align:left; text-decoration:none; cursor:pointer;
  font-size:15px; font-weight:500; line-height:1.25; letter-spacing:-.003em; color:#fff; touch-action:manipulation; transition:color .15s ease; }
.jx-chip:hover, .jx-chip:active{ color:var(--jx-pink); }

/* the ask row: a line to type on, the page's own input grammar, and a bare arrow */
.jx-ask{ flex:none; display:flex; align-items:center; gap:2px; padding:4px 8px 8px 20px; }
.jx-ask input, .jx-field{ -webkit-user-select:text; user-select:text; touch-action:manipulation; }
.jx-ask input{ flex:1; min-width:0; min-height:46px; padding:10px 2px; background:none; border:0; border-bottom:1px solid var(--jx-rule); border-radius:0; font-size:16px; outline:none; }
.jx-ask input::placeholder, .jx-field::placeholder{ color:rgba(255,255,255,.42); }
.jx-ask input:focus, .jx-field:focus{ border-bottom-color:var(--jx-pink); }
.jx-send{ appearance:none; background:none; border:0; width:46px; height:46px; display:grid; place-items:center; color:var(--jx-pink); cursor:pointer; flex:none; touch-action:manipulation; }
.jx-send[disabled]{ color:rgba(255,255,255,.28); cursor:default; }
/* while a form is in the dialogue it IS the input, so the ask row steps away */
.jx.formon .jx-ask{ display:none; }

/* lead forms live in the thread: underline fields, a consent line, one pink action, quiet rows */
.jx-form{ display:flex; flex-direction:column; gap:2px; margin-top:6px; }
.jx-field{ width:100%; min-height:46px; padding:10px 2px; background:none; border:0; border-bottom:1px solid var(--jx-rule); border-radius:0; font-size:16px; outline:none; }
.jx-consent{ margin-top:8px; font-size:12.5px; line-height:1.4; color:rgba(255,255,255,.55); text-wrap:pretty; }
.jx-err{ font-size:13px; line-height:1.35; color:#fda4af; min-height:0; }
.jx-err:empty{ display:none; }
.jx-acts{ display:flex; align-items:center; gap:22px; margin-top:4px; }
.jx-go{ appearance:none; background:none; border:0; min-height:46px; padding:10px 0; font-size:14px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--jx-pink); cursor:pointer; touch-action:manipulation; }
.jx-go[disabled]{ opacity:.45; cursor:default; }
.jx-later{ appearance:none; background:none; border:0; min-height:46px; padding:10px 0; font-size:14px; font-weight:500; color:var(--jx-dim); cursor:pointer; touch-action:manipulation; }
.jx-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; margin-top:6px; padding:12px 0;
  border-top:1px solid var(--jx-rule); color:#fff; font-size:15px; font-weight:600; text-decoration:none; touch-action:manipulation; }
.jx-row small{ font-size:12.5px; font-weight:500; color:rgba(255,255,255,.5); }
.jx-row:active{ color:var(--jx-pink); }

/* desktop (a webcam on a laptop): the sheet is a panel in the corner */
@media (min-width:720px){
  .jx-sheet{ left:auto; right:20px; bottom:20px; width:380px; max-height:min(560px, calc(100svh - 40px)); border:1px solid rgba(255,255,255,.10);
    border-radius:20px; transform:translateY(24px) scale(.96); opacity:0; pointer-events:none; transform-origin:100% 100%;
    transition:transform .44s cubic-bezier(.16,1,.3,1), opacity .26s ease-out; }
  .jx.open .jx-sheet{ transform:none; opacity:1; pointer-events:auto; }
  .jx-grab{ display:none; }
  .jx-head{ cursor:default; }
}
@media (prefers-reduced-motion:reduce){
  .jx-sheet, .jx-bubble, .jx-bubble p{ transition-duration:.01s !important; }
  .jx-msg{ animation:none; }
  .jx-typing i{ animation:none; opacity:.8; }
}

/* ============================================================================
   2026-10-13 round 2 (JoJo, after the printed-card walkthrough: "Can we make the ui way better as
   well?"): the sheet takes the MIXR x JADE onboarding floor (CLAUDE.md rule 34, MIXR-MASTER
   "ONBOARDING FLOOR" + "MOBILE UI IS CENTER ALIGNED"). Centred. A speaker label, ONE short line of
   hers in big type, her one action as pink text, and the choices as icon tiles (a glyph over one or
   two words, no boxes, no hairlines). Later rules than the 10/02 set, same specificity, so they win.
   ========================================================================== */
.jx-head{ justify-content:center; padding:18px 48px 4px; min-height:54px; }
.jx-who{ flex:none; align-items:center; text-align:center; gap:2px; }
.jx-who span{ font-size:13px; font-weight:500; color:var(--jx-dim); }
.jx-x{ position:absolute; right:4px; top:8px; }
.jx-thread{ align-items:center; text-align:center; padding:8px 24px 6px; gap:8px; }
.jx-msg{ max-width:none; }
.jx-msg.her{ align-self:center; font-size:21px; line-height:1.28; font-weight:700; letter-spacing:-.012em; text-wrap:balance; }
.jx-msg.her p{ text-wrap:balance; }
.jx-msg.you{ align-self:center; text-align:center; font-size:13.5px; color:rgba(255,255,255,.5); max-width:none; }
.jx-msg.wide{ align-self:center; }
.jx-acts{ justify-content:center; gap:26px; margin-top:8px; }
.jx-go{ display:inline-flex; align-items:center; gap:8px; font-size:15px; letter-spacing:.16em; }
.jx-go svg{ flex:none; }
.jx-chips{ grid-template-columns:repeat(4, minmax(0,1fr)); column-gap:6px; row-gap:4px; padding:6px 14px 4px; }
.jx-chip{ border-top:0; flex-direction:column; justify-content:flex-start; align-items:center; text-align:center; gap:7px; min-height:72px; padding:8px 2px 6px;
  font-size:12.5px; font-weight:600; line-height:1.2; color:rgba(255,255,255,.92); }
.jx-chip .ic{ display:grid; place-items:center; width:30px; height:30px; color:var(--jx-cyan, #22d3ee); transition:color .15s ease, transform .2s cubic-bezier(.2,1.6,.4,1); }
.jx-chip .ic svg{ width:28px; height:28px; }
.jx-chip:active .ic{ transform:scale(.9); color:var(--jx-pink); }
.jx-chip.play .ic{ color:var(--jx-pink); }
.jx-form{ align-items:center; width:100%; }
.jx-field{ text-align:center; max-width:320px; }
.jx-consent{ text-align:center; }
.jx-row{ justify-content:center; gap:10px; width:100%; max-width:320px; align-self:center; }
.jx-ask{ padding:2px 10px 8px 22px; }
