/* Targo IT assistant widget. Pairs with targo-chat.js and chat-api.php.
   Physical `right` is used on purpose: the language button already sits
   bottom-left on every page, in both languages. */
.tgc{
  --tgc-ink:#06080D; --tgc-panel:#0C1118; --tgc-raise:#131A24; --tgc-line:rgba(255,255,255,.09);
  --tgc-text:#EDF0F5; --tgc-dim:#8A94A6; --tgc-gold:#D4A945; --tgc-cyan:#35D3F5;
  position:fixed; right:22px; bottom:22px; z-index:100;
  font-family:'Jost',system-ui,-apple-system,'Segoe UI',sans-serif; font-size:15px; line-height:1.5;
  color:var(--tgc-text); direction:ltr;
}
.tgc[dir="rtl"]{ direction:rtl; }
/* Nova can be picked up and moved (owner, 2026-11-20): the robot and its bubble move by translate; the window stays put */
.tgc{ --tgc-dx:0px; --tgc-dy:0px; }
.tgc-launch, .tgc-say{ translate:var(--tgc-dx) var(--tgc-dy); }
.tgc-launch{ touch-action:none; }
.tgc-snap .tgc-launch, .tgc-snap .tgc-say{ transition:translate .5s cubic-bezier(.16,1,.3,1); }   /* glides to the nearer side */
.tgc-grab .tgc-launch{ cursor:grabbing; }
.tgc-grab .tgc-fig{ animation:tgc-lifted .32s cubic-bezier(.16,1,.3,1) forwards;
  filter:drop-shadow(0 0 22px rgba(53,211,245,.9)) drop-shadow(0 26px 24px rgba(0,0,0,.6)); }
@keyframes tgc-lifted{ 0%{ transform:scale(1) rotate(0); } 60%{ transform:scale(1.17) rotate(-9deg); } 100%{ transform:scale(1.12) rotate(-6deg); } }
.tgc[data-side="left"] .tgc-say{ right:auto; left:96px; border-radius:16px 16px 16px 4px; }
.tgc *, .tgc *::before, .tgc *::after{ box-sizing:border-box; }

/* ── launcher: the robot itself, standing in the corner ──
   Two layers of the same picture: the body, and the right arm cut out of it, which turns
   about the shoulder (22.08% / 26.3% of the layer) to raise the hand and wave. */
.tgc-launch{
  position:relative; display:block; width:71px; height:180px; padding:0; margin:0; border:0; background:none;
  cursor:pointer; -webkit-tap-highlight-color:transparent; border-radius:36px;
}
.tgc-launch:focus-visible{ outline:2px solid var(--tgc-gold); outline-offset:6px; }
.tgc-fig{ position:absolute; inset:0; display:block; transform-origin:50% 100%; animation:tgc-float 5.5s ease-in-out infinite;
  filter:drop-shadow(0 0 10px rgba(53,211,245,.35)) drop-shadow(0 10px 18px rgba(0,0,0,.55)); transition:filter .3s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.tgc-launch:hover .tgc-fig{ filter:drop-shadow(0 0 16px rgba(53,211,245,.65)) drop-shadow(0 12px 20px rgba(0,0,0,.6)); transform:translateY(-3px); }
.tgc-fig img{ position:absolute; left:0; top:0; width:100%; height:100%; display:block; pointer-events:none; user-select:none; -webkit-user-drag:none; }
/* The right arm in two parts, both drawn on the same canvas as the body: the upper arm turns at the
   shoulder (22.08% / 26.3%), the forearm and hand at the elbow ball (19.87% / 36.83%). */
.tgc-arm, .tgc-fore{ position:absolute; inset:0; display:block; }
.tgc-arm{ transform-origin:22.08% 26.3%; }
.tgc-fore{ transform-origin:19.87% 36.83%; }
/* The hand turns at the wrist (14.68% / 50.77%): the side-on hand narrows away as the open palm,
   drawn facing the visitor, opens out of it; reversed before the arm comes down. */
.tgc-fig .tgc-hand, .tgc-fig .tgc-palm{ transform-origin:14.68% 50.77%; }
.tgc-fig .tgc-palm{ opacity:0; }
.tgc-waving .tgc-hand{ animation:tgc-hand-out 5.2s both; }
.tgc-waving .tgc-palm{ animation:tgc-palm-in 5.2s both; }
@keyframes tgc-hand-out{
  0%,14%{ opacity:1; transform:scaleX(1); } 20%,80%{ opacity:0; transform:scaleX(.15); } 86%,100%{ opacity:1; transform:scaleX(1); } }
@keyframes tgc-palm-in{
  0%,14%{ opacity:0; transform:scaleX(.15); } 20%{ opacity:1; transform:scaleX(1.06); } 23%,78%{ opacity:1; transform:scaleX(1); }
  84%,100%{ opacity:0; transform:scaleX(.15); } }
.tgc-pedestal{ position:absolute; left:50%; bottom:-6px; width:96px; height:20px; transform:translateX(-50%); border-radius:50%;
  background:radial-gradient(closest-side, rgba(53,211,245,.45), rgba(53,211,245,.08) 60%, transparent);
  animation:tgc-pulse-pad 5.5s ease-in-out infinite; }
/* A natural wave: the upper arm lifts out to the side with a small overshoot, the forearm folds up
   from the elbow, waves three times from the elbow, and everything lowers softly. The body leans in a touch. */
.tgc-waving .tgc-arm{ animation:tgc-shoulder 5.2s both; }
.tgc-waving .tgc-fore{ animation:tgc-elbow 5.2s both; }
.tgc-waving .tgc-fig{ animation:tgc-lean 5.2s ease-in-out both, tgc-float 5.5s ease-in-out infinite; }
@keyframes tgc-shoulder{
  0%  { transform:rotate(0);     animation-timing-function:cubic-bezier(.3,0,.2,1); }
  15% { transform:rotate(70deg); animation-timing-function:cubic-bezier(.4,0,.6,1); }
  21% { transform:rotate(64deg); animation-timing-function:ease-in-out; }
  80% { transform:rotate(66deg); animation-timing-function:cubic-bezier(.5,0,.3,1); }
  100%{ transform:rotate(0); } }
@keyframes tgc-elbow{
  0%  { transform:rotate(0);      animation-timing-function:cubic-bezier(.5,0,.4,1); }
  9%  { transform:rotate(18deg);  animation-timing-function:cubic-bezier(.3,0,.2,1); }
  22% { transform:rotate(100deg); animation-timing-function:ease-in-out; }
  33% { transform:rotate(78deg);  animation-timing-function:ease-in-out; }
  44% { transform:rotate(112deg); animation-timing-function:ease-in-out; }
  55% { transform:rotate(80deg);  animation-timing-function:ease-in-out; }
  66% { transform:rotate(108deg); animation-timing-function:ease-in-out; }
  76% { transform:rotate(95deg);  animation-timing-function:cubic-bezier(.5,0,.3,1); }
  94% { transform:rotate(4deg);   animation-timing-function:ease-out; }
  100%{ transform:rotate(0); } }
@keyframes tgc-lean{ 0%,100%{ rotate:0deg; } 20%,78%{ rotate:-1.6deg; } }
@keyframes tgc-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-4px); } }
@keyframes tgc-pulse-pad{ 0%,100%{ opacity:.75; transform:translateX(-50%) scale(1); } 50%{ opacity:1; transform:translateX(-50%) scale(1.08); } }
.tgc[data-open="true"] .tgc-launch{ display:none; }
/* Open: above the site's own menu button (z 120), still below the full-screen menu (z 130). */
.tgc[data-open="true"]{ z-index:125; }

/* ── what the robot says ── */
.tgc-say{
  position:absolute; right:96px; bottom:146px; width:max-content; max-width:min(250px, calc(100vw - 110px));
  padding:11px 15px; border-radius:16px 16px 4px 16px; cursor:pointer;
  background:linear-gradient(160deg, rgba(19,26,36,.97), rgba(12,17,24,.97));
  border:1px solid rgba(53,211,245,.28); color:var(--tgc-text); font-size:.92rem; line-height:1.45;
  box-shadow:0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(212,169,69,.08), 0 0 22px rgba(53,211,245,.12);
  animation:tgc-say-in .5s cubic-bezier(.16,1,.3,1) .35s both; transform-origin:100% 100%;
}
.tgc-say[dir="rtl"]{ font-family:inherit; }
.tgc-say[hidden]{ display:none; }
.tgc-say::after{ content:''; position:absolute; right:-6px; bottom:10px; width:12px; height:12px; transform:rotate(45deg);
  background:rgba(12,17,24,.97); border-right:1px solid rgba(53,211,245,.28); border-top:1px solid rgba(53,211,245,.28); }
@keyframes tgc-say-in{ from{ opacity:0; transform:translateY(8px) scale(.94); } to{ opacity:1; transform:none; } }

/* ── panel ── */
.tgc-panel{
  position:absolute; right:0; bottom:0; width:min(390px, calc(100vw - 28px));
  height:min(640px, calc(100dvh - 44px)); display:flex; flex-direction:column; overflow:hidden;
  background:var(--tgc-panel); border:1px solid var(--tgc-line); border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(212,169,69,.08);
  opacity:0; transform:translateY(14px) scale(.98); transform-origin:100% 100%;
  transition:opacity .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.tgc[dir="rtl"] .tgc-panel{ right:auto; left:auto; }
.tgc-panel[hidden]{ display:none; }
.tgc[data-open="true"] .tgc-panel{ opacity:1; transform:none; }

.tgc-head{ display:flex; align-items:center; gap:12px; padding:14px 14px 12px 16px; border-bottom:1px solid var(--tgc-line);
  background:linear-gradient(180deg, #101823, var(--tgc-panel)); }
.tgc-head img{ width:42px; height:42px; border-radius:50%; background:#080B11; border:1px solid rgba(212,169,69,.4); object-fit:cover; flex:none; }
.tgc-title{ font-weight:500; font-size:1rem; letter-spacing:.01em; margin:0; }
.tgc-sub{ margin:0; font-size:.74rem; color:var(--tgc-dim); letter-spacing:.04em; }
.tgc-head > div{ flex:1; min-width:0; }
.tgc-btn{
  flex:none; width:36px; height:36px; border-radius:50%; border:1px solid var(--tgc-line); background:transparent;
  color:var(--tgc-dim); cursor:pointer; display:grid; place-items:center; transition:color .2s, border-color .2s, background .2s;
}
.tgc-btn:hover{ color:var(--tgc-text); border-color:rgba(255,255,255,.25); }
.tgc-mute[aria-pressed="false"] svg:last-child{ opacity:.15; }
.tgc-btn{ position:relative; }
.tgc-btn svg + svg{ position:absolute; inset:0; margin:auto; }
.tgc-btn svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.tgc-log{ flex:1; overflow-y:auto; overscroll-behavior:contain; padding:16px; display:flex; flex-direction:column; gap:10px; scroll-behavior:smooth; }
.tgc-hello{ position:relative; text-align:center; padding:6px 0 4px; }
/* the glow is a separate soft circle behind the robot: a filter on the masked image would be clipped to a box */
.tgc-hello::before{ content:''; position:absolute; left:50%; top:0; width:230px; height:170px; transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(53,211,245,.2), rgba(53,211,245,0)); pointer-events:none; }
.tgc-hello > *{ position:relative; }
.tgc-hello img{ width:132px; height:132px; object-fit:contain; display:block; margin:0 auto 4px;
  /* the bust is cut off at the hands: fade it out instead of ending on a hard edge */
  -webkit-mask-image:linear-gradient(#000 70%, transparent); mask-image:linear-gradient(#000 70%, transparent); }
.tgc-hello b{ display:block; font-weight:500; font-size:1.05rem; }
.tgc-hello span{ display:block; color:var(--tgc-dim); font-size:.86rem; max-width:30ch; margin:2px auto 0; }

.tgc-msg{ max-width:88%; padding:10px 13px; border-radius:16px; word-wrap:break-word; overflow-wrap:anywhere; animation:tgc-pop .3s ease both; }
.tgc-msg p{ margin:0; } .tgc-msg p + p, .tgc-msg ul + p, .tgc-msg p + ul{ margin-top:8px; }
.tgc-msg ul{ margin:0; padding-inline-start:18px; } .tgc-msg li + li{ margin-top:3px; }
.tgc-msg strong{ font-weight:600; color:#fff; }
.tgc-msg a{ color:var(--tgc-gold); text-decoration:underline; text-underline-offset:2px; }
.tgc-bot{ align-self:flex-start; background:var(--tgc-raise); border:1px solid var(--tgc-line); border-bottom-left-radius:4px; }
.tgc-me{ align-self:flex-end; background:rgba(212,169,69,.14); border:1px solid rgba(212,169,69,.32); border-bottom-right-radius:4px; }
.tgc[dir="rtl"] .tgc-bot{ border-bottom-left-radius:16px; border-bottom-right-radius:4px; }
.tgc[dir="rtl"] .tgc-me{ border-bottom-right-radius:16px; border-bottom-left-radius:4px; }

/* thinking: the Targo target, turning */
.tgc-typingbox{ display:flex; align-items:center; gap:10px; padding:10px 15px 10px 11px; }
.tgc[dir="rtl"] .tgc-typingbox{ padding:10px 11px 10px 15px; }
.tgc-target{ width:34px; height:34px; flex:none; overflow:visible; filter:drop-shadow(0 0 5px rgba(53,211,245,.55)); }
.tgc-t-ring{ fill:none; stroke:var(--tgc-cyan); stroke-width:2.2; stroke-linecap:round; }
.tgc-t-tick{ stroke:var(--tgc-cyan); stroke-width:2.4; stroke-linecap:round; }
.tgc-t-inner{ fill:none; stroke:rgba(53,211,245,.55); stroke-width:1.6; }
.tgc-t-dot{ fill:var(--tgc-gold); animation:tgc-pulse 1.4s ease-in-out infinite; transform-origin:24px 24px; }
.tgc-target-spin{ transform-origin:24px 24px; animation:tgc-spin 2.4s linear infinite; }
.tgc-think{ color:var(--tgc-dim); font-size:.86rem; letter-spacing:.03em; }
@keyframes tgc-spin{ to{ transform:rotate(360deg); } }
@keyframes tgc-pulse{ 0%,100%{ transform:scale(1); opacity:.9; } 50%{ transform:scale(1.35); opacity:1; } }

.tgc-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tgc-link{
  display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:99px; font-size:.84rem;
  border:1px solid rgba(212,169,69,.45); color:var(--tgc-gold); text-decoration:none !important; background:rgba(212,169,69,.06);
  transition:background .2s, border-color .2s;
}
.tgc-link:hover{ background:rgba(212,169,69,.16); border-color:var(--tgc-gold); }

.tgc-has-cta{ width:88%; }
.tgc-wa{
  position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; margin-top:14px; padding:14px 16px; border-radius:14px;
  font-weight:500; font-size:.95rem; letter-spacing:.015em; line-height:1.25; text-align:center;
  color:#fff !important; text-decoration:none !important;
  background:linear-gradient(135deg,#0A2F7A 0%,#1558D6 46%,#2FA8FF 100%);
  border:1px solid rgba(190,225,255,.38);
  box-shadow:0 10px 26px rgba(21,88,214,.5), 0 0 0 1px rgba(10,47,122,.6), inset 0 1px 0 rgba(255,255,255,.38);
  text-shadow:0 1px 2px rgba(0,20,70,.45);
  transition:transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, filter .25s ease;
}
.tgc-wa::after{ content:''; position:absolute; top:0; bottom:0; width:42%; left:-60%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent); transform:skewX(-18deg);
  animation:tgc-sheen 4.2s ease-in-out 1.2s infinite; pointer-events:none; }
.tgc-wa:hover{ transform:translateY(-2px); filter:brightness(1.08); box-shadow:0 14px 32px rgba(21,88,214,.62), 0 0 0 1px rgba(10,47,122,.6), inset 0 1px 0 rgba(255,255,255,.45); }
.tgc-wa:active{ transform:translateY(0); }
.tgc-wa:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
.tgc-wa-i{ width:22px; height:22px; flex:none; fill:#fff; stroke:none !important; }
/* On an article the same button opens the Start a project page: an arrow drawn with a line instead of the WhatsApp mark. */
.tgc-start .tgc-wa-i{ fill:none; stroke:#fff !important; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
@keyframes tgc-sheen{ 0%,62%{ left:-60%; } 100%{ left:130%; } }
.tgc-chips{ display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 12px; }
.tgc-chips[hidden]{ display:none; }
.tgc-chip{
  padding:8px 13px; border-radius:99px; border:1px solid var(--tgc-line); background:var(--tgc-raise); color:var(--tgc-text);
  font:inherit; font-size:.84rem; cursor:pointer; transition:border-color .2s, background .2s;
}
.tgc-chip:hover{ border-color:var(--tgc-gold); background:#18212d; }

.tgc-form{ display:flex; align-items:flex-end; gap:8px; padding:10px 12px; border-top:1px solid var(--tgc-line); background:#0A0F16; }
.tgc-in{
  flex:1; min-height:42px; max-height:120px; resize:none; border-radius:14px; border:1px solid var(--tgc-line);
  background:var(--tgc-ink); color:var(--tgc-text); font:inherit; font-size:16px; /* 16px stops iOS zooming on focus */
  padding:10px 13px; line-height:1.4;
}
.tgc-in::placeholder{ color:#5D677A; }
.tgc-send{ width:42px; height:42px; border-radius:50%; border:0; background:var(--tgc-gold); color:#120E02; cursor:pointer; display:grid; place-items:center; flex:none; transition:transform .2s, opacity .2s; }
.tgc-send:hover{ transform:scale(1.06); } .tgc-send:disabled{ opacity:.4; cursor:default; transform:none; }
.tgc-send svg{ width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.tgc[dir="rtl"] .tgc-send svg{ transform:scaleX(-1); }

.tgc-foot{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 14px; padding:7px 12px 10px; background:#0A0F16; font-size:.72rem; color:var(--tgc-dim); }
.tgc-foot a{ color:var(--tgc-dim); text-decoration:none; } .tgc-foot a:hover{ color:var(--tgc-gold); }
.tgc-note{ width:100%; text-align:center; font-size:.68rem; color:#5D677A; }

.tgc-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ── phones: a full-screen sheet ── */
@media (max-width:560px){
  .tgc{ right:16px; bottom:16px; bottom:max(16px, env(safe-area-inset-bottom)); }
  .tgc[data-open="true"]{ inset:0; right:0; bottom:0; }
  .tgc-panel{ position:fixed; inset:0; width:auto; height:auto; max-height:none; border-radius:0; border:0; transform-origin:50% 100%; }
  .tgc-head{ padding-top:max(14px, env(safe-area-inset-top)); }
  .tgc-foot{ padding-bottom:max(10px, env(safe-area-inset-bottom)); }
  .tgc-launch{ width:48px; height:120px; }
  .tgc-pedestal{ width:68px; }
  .tgc-say{ right:66px; bottom:96px; font-size:.88rem; max-width:min(230px, calc(100vw - 100px)); }
  .tgc[data-side="left"] .tgc-say{ right:auto; left:66px; }
}
@media (prefers-reduced-motion:reduce){
  .tgc *, .tgc *::before, .tgc *::after{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
