/* Extracted from /assets/site.css: only what assistant.js and SX.swatches need on the v2 landing (keep in sync). */
.sxa, .v2-kit {
  --accent: #7c3aed;
  --accent-b: #ec4899;
  --accent-c: #0ea5e9;
  --on-accent: #ffffff;
  --ink: #12131a;
  --ink-2: #454857;
  --ink-3: #7a7d8c;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e4e2db;
  --night: #0c0d12;
  --night-2: #161822;
  --ok: #12805c;
  --bad: #c2303a;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 30%, #fff);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(18 19 26 / 0.05), 0 12px 32px -12px rgb(18 19 26 / 0.18);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -10px var(--accent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
}
.btn-light {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
  color: #fff;
}
.btn-light:hover {
  background: rgb(255 255 255 / 0.16);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- brand ---------- */
.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.85);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
  padding: 0;
  background: var(--c);
  flex: none;
  transition: transform 0.15s;
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c);
  transform: scale(1.08);
}
.swatch-custom {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18);
  border: 2px solid rgb(255 255 255 / 0.85);
  overflow: hidden;
}
.swatch-custom input {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  opacity: 0;
  cursor: pointer;
}
.swatch-custom:focus-within {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff);
  outline-offset: 2px;
}
.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15);
  vertical-align: -2px;
  margin-inline-end: 6px;
}
.sxa {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  font-family: var(--font);
  color: #f4f4f7;
}
.sxa-launch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(16 12 30 / 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px #7c3aed, 0 0 0 1px rgb(0 0 0 / 0.3);
  transition: transform 0.2s;
}
.sxa-launch:hover {
  transform: translateY(-2px);
}
.sxa-launch img {
  border-radius: 9px;
}
.sxa-ai {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  direction: ltr;
}
.sxa.open .sxa-launch {
  display: none;
}
/* compact (icon + AI) so it stays clear of page content; the label shows on hover/focus */
.sxa-launch:not(:hover):not(:focus-visible) {
  padding: 8px 12px 8px 8px;
}
.sxa-launch:not(:hover):not(:focus-visible) span {
  display: none;
}
.sxa-panel {
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0b1d;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8), 0 0 60px -20px #7c3aed;
}
.sxa-panel[hidden] {
  display: none;
}
.sxa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgb(124 58 237 / 0.35), rgb(236 72 153 / 0.2));
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.sxa-head img {
  border-radius: 10px;
}
.sxa-head div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  min-width: 0;
}
.sxa-head b {
  font-size: 15.5px;
}
.sxa-head span {
  font-size: 12px;
  color: rgb(244 244 247 / 0.65);
}
.sxa-x {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.sxa-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sxa-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.sxa-msg.assistant {
  align-self: flex-start;
  background: rgb(255 255 255 / 0.07);
  border-start-start-radius: 6px;
}
.sxa-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-start-end-radius: 6px;
}
.sxa-msg.error {
  background: rgb(255 107 118 / 0.14);
  color: #ffb4bb;
}
.sxa-msg a {
  color: #f9a8d4;
  text-decoration: underline;
  direction: ltr;
  unicode-bidi: isolate;
}
.sxa-thumb {
  display: block;
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.sxa-msg.typing {
  display: flex;
  gap: 5px;
  padding: 14px 16px;
}
.sxa-msg.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  animation: sxa-dot 1s infinite ease-in-out;
}
.sxa-msg.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.sxa-msg.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes sxa-dot {
  50% {
    transform: translateY(-5px);
    opacity: 0.4;
  }
}
.sxa-brief {
  align-self: stretch;
  padding: 14px;
  border-radius: 16px;
  background: rgb(53 224 161 / 0.08);
  border: 1px solid rgb(53 224 161 / 0.35);
  font-size: 14px;
}
.sxa-brief dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0 12px;
}
.sxa-brief dt {
  color: rgb(244 244 247 / 0.55);
}
.sxa-brief dd {
  margin: 0;
}
.sxa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sxa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.sxa-chips[hidden] {
  display: none;
}
.sxa-chips button {
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
  color: rgb(244 244 247 / 0.85);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.sxa-chips button:hover {
  background: rgb(255 255 255 / 0.12);
}
.sxa-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  flex-wrap: wrap;
}
.sxa-att {
  position: relative;
  width: 100%;
}
.sxa-att img {
  height: 64px;
  border-radius: 10px;
}
.sxa-att button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #000;
  color: #fff;
}
.sxa-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14.5px;
  line-height: 1.6;
}
.sxa-form textarea::placeholder {
  /* a one-row box: keep the hint on one line instead of a clipped second line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sxa-form textarea:focus {
  outline: none;
  border-color: #a78bfa;
}
.sxa-pic,
.sxa-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
}
.sxa-pic {
  background: rgb(255 255 255 / 0.07);
  color: rgb(244 244 247 / 0.8);
}
.sxa-pic input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.sxa-send {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
}
.sxa-pic svg,
.sxa-send svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 600px) {
  .sxa {
    left: 12px;
    bottom: 12px;
  }
  .sxa-launch span {
    display: none;
  }
  .sxa-launch {
    padding: 8px 12px 8px 8px;
  }
  .sxa.open {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .sxa-panel {
    width: 100%;
    height: calc(100dvh - 16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sxa-msg.typing i {
    animation: none;
  }
}

/* lab wireframe + screenshot tint, from /assets/landing.css */
.preview .tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--pick, transparent);
  mix-blend-mode: hue;
  opacity: 0;
  transition: opacity 0.4s;
}
.picked .preview .tint {
  opacity: 0.85;
}
.x-wire {
  --a: var(--pick, #b4532a); --ink: #2a211b; --soft: #e9e1d8;
  position: relative; aspect-ratio: 16 / 10.4; background: #fbf8f4; overflow: hidden; display: flex; flex-direction: column;
}
.x-wire * { transition: all 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.x-wire i, .x-wire b, .x-wire em { display: block; font-style: normal; }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 4%; height: 13%; padding: 0 4%; background: #fff; border-bottom: 1px solid var(--soft); position: relative; z-index: 2; flex: none; }
.w-logo { width: 12%; height: 22%; border-radius: 4px; background: var(--ink); }
.w-nav { display: flex; gap: 6%; width: 34%; }
.w-nav i { flex: 1; height: 5px; border-radius: 3px; background: #cbbfb3; }
.w-btn { display: block; width: 11%; height: 30%; border-radius: 5px; background: var(--a); }
.x-wire[data-header="center"] .w-head { flex-direction: column; justify-content: center; height: 18%; gap: 10%; }
.x-wire[data-header="center"] .w-logo { width: 14%; height: 18%; }
.x-wire[data-header="center"] .w-head > .w-btn { position: absolute; inset-inline-end: 4%; top: 30%; height: 22%; width: 9%; }
.x-wire[data-header="overlay"] .w-head { position: absolute; inset: 0 0 auto; background: transparent; border-color: rgb(255 255 255 / 0.25); }
.x-wire[data-header="overlay"] .w-logo, .x-wire[data-header="overlay"] .w-nav i { background: #fff; }
.w-hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; padding: 4% 4% 3%; height: 50%; flex: none; align-items: center; }
.w-copy { display: grid; gap: 9px; align-content: center; position: relative; z-index: 1; }
.w-t { height: 12px; width: 88%; border-radius: 4px; background: var(--ink); }
.w-t.s { width: 62%; }
.w-l { height: 6px; width: 92%; border-radius: 3px; background: #cdbfb2; }
.w-copy .w-btn { width: 34%; height: 18px; margin-top: 4px; }
.w-pic { height: 100%; border-radius: 10px; overflow: hidden; background: var(--soft); }
.w-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; display: block; }
.x-wire[data-header="overlay"] .w-hero { padding-top: 16%; height: 56%; }
.x-wire[data-hero="full"] .w-hero { grid-template-columns: 1fr; padding: 4% 7%; }
.x-wire[data-hero="full"] .w-pic { position: absolute; inset: 0; border-radius: 0; }
.x-wire[data-hero="full"] .w-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgb(20 14 10 / 0.75), rgb(20 14 10 / 0.15)); }
.x-wire[data-hero="full"] .w-copy { width: 50%; }
.x-wire[data-hero="full"] .w-t { background: #fff; }
.x-wire[data-hero="full"] .w-l { background: rgb(255 255 255 / 0.6); }
.x-wire[data-hero="center"] .w-hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 6%; justify-items: center; text-align: center; }
.x-wire[data-hero="center"] .w-copy { width: 54%; justify-items: center; gap: 7px; }
.x-wire[data-hero="center"] .w-l:nth-of-type(4) { display: none; }
.x-wire[data-hero="center"] .w-pic { width: 100%; height: 100%; min-height: 0; }
.w-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3% 5%; padding: 3% 4% 4%; align-content: start; }
.w-cards span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px dashed #d6c9bc; }
.w-cards span i { display: none; }
.w-cards span b { height: 7px; width: 70%; border-radius: 3px; background: var(--ink); }
.w-cards span em { width: 34px; height: 7px; border-radius: 3px; background: var(--a); }
.x-wire[data-cards="grid"] .w-cards { grid-template-columns: repeat(4, 1fr); gap: 3%; }
.x-wire[data-cards="grid"] .w-cards span { grid-template-columns: 1fr; padding: 6px; border: 1px solid var(--soft); border-radius: 8px; background: #fff; gap: 6px; }
.x-wire[data-cards="grid"] .w-cards span i { display: block; height: 38px; border-radius: 5px; background: color-mix(in srgb, var(--a) 22%, #f3ece4); }
.x-wire[data-cards="large"] .w-cards { grid-template-columns: 1fr 1fr; }
.x-wire[data-cards="large"] .w-cards span:nth-child(n + 3) { display: none; }
.x-wire[data-cards="large"] .w-cards span { grid-template-columns: 1fr auto; border: 0; padding: 0; gap: 8px; }
.x-wire[data-cards="large"] .w-cards span i { display: block; grid-column: 1 / -1; height: 64px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 70%, #000), color-mix(in srgb, var(--a) 30%, #fff)); }
.x-wire[data-hero="full"] .w-pic img,
.x-wire[data-hero="center"] .w-pic img { object-position: 50% 62%; transform: scale(2.1); transform-origin: 8% 62%; }
/* transparent header only turns white over a full-width picture; over a plain hero it keeps the normal colours */
.x-wire[data-header="overlay"]:not([data-hero="full"]) .w-logo { background: var(--ink); }
.x-wire[data-header="overlay"]:not([data-hero="full"]) .w-nav i { background: #cbbfb3; }
.x-wire[data-header="overlay"]:not([data-hero="full"]) .w-head { border-color: var(--soft); }
@media (max-width: 640px) {
  .x-wire { aspect-ratio: 16 / 12; }
  .w-copy { gap: 5px; }
  .w-t { height: 8px; } .w-l { height: 4px; } .w-copy .w-btn { height: 10px; }
  .x-wire[data-cards="grid"] .w-cards span i { height: 22px; }
  .x-wire[data-cards="large"] .w-cards span i { height: 34px; }
  .w-cards span { padding-bottom: 4px; gap: 4px; }
  .w-cards span b, .w-cards span em { height: 5px; }
}
@media (prefers-reduced-motion: reduce) { .x-wire * { transition: none; } }

/* tucked: the button slid aside because a page control is underneath; a slim tab stays tappable */
.sxa { transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.sxa.tuck { transform: translateX(calc(-100% + 2px)); }
.sxa.tuck .sxa-launch { border-radius: 0 999px 999px 0; box-shadow: 0 8px 20px -10px #7c3aed; }
.sxa.tuck .sxa-launch::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 18px; border-radius: 0 12px 12px 0; background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sxa-launch { position: relative; }
/* tucked tab: only a 10px strip at the very screen edge, clear of page gutters */
.sxa.tuck { transform: translateX(calc(-100% - 20px)); }
.sxa.tuck .sxa-launch::after { right: -10px; width: 10px; border-radius: 0 10px 10px 0; }
.sxa.tuck { left: 0 !important; transform: translateX(-100%); }
