/* Kloon site kit — shared by the landing prototypes (studio/lab/site-*.html).
   The orb is the app's own (theme.css, UI Studio L10); the logo is brand/logo.tsx. */
:root { --ink: #1a1714; --ink2: #6e675d; --ink3: #8f887d; --paper: #f6f5f2; --acc: #6558d6; --accsoft: #ebe7fb;
  --rose: #f0b6c3; --lav: #a99bff; --peri: #8aa6ff; --sand: #f3d9a8; --ease: cubic-bezier(.22,.8,.2,1); }
@font-face { font-family: 'Onest'; src: url(fonts/onest-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(fonts/jakarta.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
/* the orb (UI Studio L10): dark glass, liquid light round the edge that
   drifts into the centre. --s is the size, set inline by <Orb>. */
.orb {
  --dur: 1;
  position: relative;
  flex: none;
  border-radius: 50%;
  isolation: isolate;
  background: radial-gradient(circle at 46% 40%, #2c2542, #141118 72%);
  /* no glow around it: the light lives inside the glass (Studio, 23 Nov) */
}
.orb-rim {
  position: absolute;
  inset: -1%;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0%, #000 50%, #000 68%, transparent 84%);
  mask: radial-gradient(circle, transparent 0%, #000 50%, #000 68%, transparent 84%);
  filter: blur(calc(var(--s) * 0.035));
}
.orb-rim::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(20 17 24 / 0.55), transparent 55%);
}
.orb-blobs {
  position: absolute;
  inset: 0;
  filter: url(#orb-goo-l);
}
.orb[data-size='m'] .orb-blobs { filter: url(#orb-goo-m); }
.orb[data-size='s'] .orb-blobs { filter: url(#orb-goo-s); }
.orb-blobs b {
  position: absolute;
  border-radius: 50%;
}
.orb-blobs b:nth-child(1) { width: 62%; height: 62%; left: 44%; top: -6%; background: rgb(240 182 195 / 0.95); animation: orb-d1 calc(9s * var(--dur)) ease-in-out infinite; }
.orb-blobs b:nth-child(2) { width: 56%; height: 56%; left: 48%; top: 46%; background: rgb(138 166 255 / 0.95); animation: orb-d2 calc(11s * var(--dur)) ease-in-out infinite; }
.orb-blobs b:nth-child(3) { width: 44%; height: 44%; left: 4%; top: 56%; background: rgb(243 217 168 / 0.95); opacity: 0.8; animation: orb-d3 calc(13s * var(--dur)) ease-in-out infinite; }
.orb-blobs b:nth-child(4) { width: 50%; height: 50%; left: -6%; top: 4%; background: rgb(169 155 255 / 0.95); animation: orb-d4 calc(15s * var(--dur)) ease-in-out infinite; }
.orb[data-size='s'] .orb-blobs b:nth-child(4) { display: none; }

.orb[data-muted='true'] { filter: saturate(0.25); }
.orb[data-still='true'],
.orb[data-still='true'] .orb-rim,
.orb[data-still='true'] .orb-blobs,
.orb[data-still='true'] .orb-blobs b { animation: none; }

/* states: the motion, not the colour, says what the AI is doing ---------- */
.orb[data-state='listening'] { --dur: 0.8; }
.orb[data-state='listening'] .orb-rim { animation: orb-listen 1.3s ease-in-out infinite; }

.orb[data-state='learning'] .orb-rim::before { opacity: 0.5; }
.orb[data-state='learning'] .orb-blobs b { width: 38%; height: 38%; left: 31%; top: 31%; animation: orb-inflow 4s cubic-bezier(0.45, 0, 0.6, 1) infinite; }
.orb[data-state='learning'] .orb-blobs b:nth-child(1) { --a: 20deg; animation-delay: 0s; }
.orb[data-state='learning'] .orb-blobs b:nth-child(2) { --a: 110deg; animation-delay: -1s; }
.orb[data-state='learning'] .orb-blobs b:nth-child(3) { --a: 200deg; animation-delay: -2s; }
.orb[data-state='learning'] .orb-blobs b:nth-child(4) { --a: 290deg; animation-delay: -3s; }

.orb[data-state='searching'] { animation: orb-drift 4.2s ease-in-out infinite; }
.orb[data-state='searching'] .orb-blobs { animation: orb-spin 3.4s linear infinite; }
.orb[data-state='searching'] .orb-blobs b:nth-child(3),
.orb[data-state='searching'] .orb-blobs b:nth-child(4) { opacity: 0.35; }

/* talking: the whole orb swells and settles, not just the light inside */
.orb[data-state='talking'] { animation: orb-talk 1.6s ease-in-out infinite; }

.orb[data-state='simulating'] .orb-rim::before { opacity: 0.2; }
.orb[data-state='simulating'] .orb-blobs b:nth-child(3),
.orb[data-state='simulating'] .orb-blobs b:nth-child(4) { display: none; }
.orb[data-state='simulating'] .orb-blobs b:nth-child(1),
.orb[data-state='simulating'] .orb-blobs b:nth-child(2) { width: 48%; height: 48%; left: 26%; top: 26%; animation: orb-pair 6s ease-in-out infinite; }
.orb[data-state='simulating'] .orb-blobs b:nth-child(2) { animation-delay: -3s; }

.orb[data-state='thinking'] .orb-blobs { animation: orb-think 7s linear infinite; }

.orb[data-state='found'] { animation: orb-pop 3.2s ease-in-out infinite; }
.orb[data-state='found'] .orb-blobs { animation: orb-gather 3.2s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes orb-d1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-46%, 30%) scale(0.8); } 55% { transform: translate(-40%, 55%) scale(0.7); } 80% { transform: translate(-10%, 40%) scale(1.15); } }
@keyframes orb-d2 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(-50%, -20%) scale(0.8); } 75% { transform: translate(-20%, -60%) scale(0.85); } }
@keyframes orb-d3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70%, -90%) scale(1.2); } }
@keyframes orb-d4 { 0%, 100% { transform: translate(0, 0) scale(1); } 30% { transform: translate(40%, 50%) scale(1.15); } 70% { transform: translate(90%, 10%) scale(0.85); } }
@keyframes orb-listen { 0%, 100% { transform: scale(0.94); } 40% { transform: scale(1.06); } 65% { transform: scale(0.99); } }
@keyframes orb-inflow {
  0% { transform: rotate(var(--a)) translateX(62%) scale(1.15); opacity: 0; }
  15% { opacity: 1; }
  80% { transform: rotate(calc(var(--a) + 40deg)) translateX(4%) scale(0.55); opacity: 1; }
  100% { transform: rotate(calc(var(--a) + 50deg)) translateX(0) scale(0.4); opacity: 0; }
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-drift { 25% { transform: translateX(2.5%); } 75% { transform: translateX(-2.5%); } }
@keyframes orb-talk { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 22% { transform: scale(0.97); } 38% { transform: scale(1.055); } 52% { transform: scale(0.985); } 70% { transform: scale(1.045); } 84% { transform: scale(0.98); } }
@keyframes orb-pop { 0%, 40%, 100% { transform: scale(1); } 52% { transform: scale(1.06); } 66% { transform: scale(0.99); } }
@keyframes orb-pair {
  0% { transform: rotate(0deg) translateX(30%); }
  25% { transform: rotate(90deg) translateX(10%); }
  50% { transform: rotate(180deg) translateX(32%); }
  75% { transform: rotate(270deg) translateX(6%); }
  100% { transform: rotate(360deg) translateX(30%); }
}
@keyframes orb-think { 0% { transform: rotate(0deg) scale(0.82); } 50% { transform: rotate(180deg) scale(0.9); } 100% { transform: rotate(360deg) scale(0.82); } }
@keyframes orb-gather { 0%, 100% { transform: scale(1); } 34% { transform: scale(0.42); } 50% { transform: scale(1.28); } 68% { transform: scale(0.95); } }

/* on a phone, only that phone's store badge */
html[data-platform='ios'] [data-store='android'],
html[data-platform='android'] [data-store='ios'] { display: none !important; }
