/* ==========================================================================
   Nexus landing v4 — the new design layer.
   House rules: Inter only. No rounded corners. No mini labels.
   base.css (carried over from landing-v3) styles the reused sections;
   everything prefixed x- is new.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/landing-v4/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --x-max: 1680px;
  --x-pad: clamp(16px, 4vw, 48px);
  --x-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --x-fg: #f5f5f5;
  --x-fg-2: #a3a3a3;
  --x-fg-3: #6b6b6b;
  --x-line: rgba(255, 255, 255, 0.08);
  --x-line-2: rgba(255, 255, 255, 0.14);
}

html { scroll-padding-top: 76px; }
body { background: #050505; font-optical-sizing: auto; overflow-x: clip; }
::selection { background: rgba(255, 255, 255, 0.9); color: #050505; }

/* The reused sections keep their internals; only the frame changes. */
.wrap { max-width: var(--x-max); padding: 0 var(--x-pad); }
.section { border-top: 0; padding: clamp(76px, 8.5vw, 124px) 0; }
.x-wrap { max-width: var(--x-max); margin: 0 auto; padding: 0 var(--x-pad); }

/* ---- buttons -------------------------------------------------------------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--x-ease);
}
.x-btn .arr { display: inline-block; transition: transform 0.25s var(--x-ease); }
.x-btn:hover .arr { transform: translateX(3px); }
.x-btn:active { transform: translateY(1px); }
.x-btn-primary { background: #fff; color: #050505; font-weight: 600; }
.x-btn-primary:hover { background: #e6e6e6; }
.x-btn-ghost { color: var(--x-fg); border-color: var(--x-line-2); background: rgba(255, 255, 255, 0.03); }
.x-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); }
.x-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.x-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.x-btn:focus-visible, .x-links a:focus-visible, .x-pill:focus-visible, .x-host:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- nav ------------------------------------------------------------------ */
.x-nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 64px;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.x-nav.scrolled {
  background: rgba(5, 5, 5, 0.76);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--x-line);
}
.x-nav > .x-wrap { display: flex; align-items: center; gap: 24px; width: 100%; }
.x-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.x-brand svg { width: 19px; height: 19px; display: block; }
.x-links { display: flex; gap: 30px; margin: 0 auto; }
.x-links a { font-size: 13.5px; color: var(--x-fg-2); text-decoration: none; transition: color 0.15s; }
.x-links a:hover { color: #fff; }
.x-nav-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.x-signin { font-size: 13.5px; color: var(--x-fg-2); text-decoration: none; padding: 0 12px; transition: color 0.15s; }
.x-signin:hover { color: #fff; }

/* ---- section head ----------------------------------------------------------- */
.x-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(32px, 5vw, 96px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.x-h2 {
  margin: 0; color: #fff; font-weight: 600;
  font-size: clamp(34px, 4.7vw, 64px); line-height: 1.0; letter-spacing: -0.042em; text-wrap: balance;
}
.x-lede {
  margin: 0; color: var(--x-fg-2); font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.55; letter-spacing: -0.008em; max-width: 46ch; text-wrap: pretty;
}

/* ---- hero ------------------------------------------------------------------- */
.x-hero { position: relative; min-height: min(100vh, 900px); padding: clamp(128px, 14vw, 168px) 0 clamp(72px, 8vw, 104px); overflow: clip; display: flex; flex-direction: column; justify-content: center; }

/* Filter cards on a concave arc behind the headline. Positions are set per
   frame by v4.js (the arc drifts slowly, like the old hero's carousel). */
.x-arc {
  --cw: clamp(280px, 24vw, 620px);
  position: absolute; left: 0; right: 0; top: 0; height: clamp(620px, 62vw, 1100px);
  pointer-events: none; overflow: hidden; z-index: 0; isolation: isolate;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 80%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 58%, transparent 80%);
}
/* Each card carries its own perspective() in its transform (set by v4.js),
   centred on the stage, so the arc renders the same in Safari, where 3D
   under a masked, clipped parent gets flattened. */
.x-arc-stage { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.x-arc-card {
  position: absolute; left: 0; top: 0; margin: 0;
  width: var(--cw, 280px); aspect-ratio: 440 / 580;
  margin-left: calc(var(--cw, 280px) / -2); margin-top: calc(var(--cw, 280px) * 0.659 * -1);
  backface-visibility: hidden; will-change: transform, opacity;
  border: 1px solid rgba(255, 255, 255, 0.1); background: #0a0a0a; overflow: hidden;
  opacity: 0;
}
.x-arc-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* keeps the headline readable over the cards; above phone width it is
   centred on the headline via --hy (set by v4.js, which also moves the arc) */
.x-hero::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: calc(var(--hy, 418px) - 258px); width: min(1100px, 96vw); height: 560px; transform: translateX(-50%) translateZ(0);
  background: radial-gradient(50% 50% at 50% 46%, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0) 100%);
}
/* translateZ(0): keeps text above the 3D cards in Safari, which otherwise
   paints transformed layers over later, flat siblings */
.x-hero-copy { position: relative; z-index: 2; transform: translateZ(0); display: flex; flex-direction: column; align-items: center; text-align: center; }
.x-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px;
  border: 1px solid var(--x-line-2); background: rgba(10, 10, 10, 0.85);
  font-size: 13.5px; color: var(--x-fg); text-decoration: none; margin-bottom: 30px;
  transition: border-color 0.2s;
}
.x-pill:hover { border-color: rgba(255, 255, 255, 0.34); }
.x-pill-apple { width: 12px; height: 15px; margin-top: -2px; fill: currentColor; flex: none; }
.x-pill .arr { color: var(--x-fg-2); transition: transform 0.25s var(--x-ease); }
.x-pill:hover .arr { transform: translateX(3px); }
.x-h1 {
  margin: 0; color: #fff; font-weight: 600;
  font-size: clamp(46px, 7.6vw, 112px); line-height: 0.93; letter-spacing: -0.052em; text-wrap: balance;
}
.x-h1 .l2 { display: block; }
.x-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.x-apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-top: 44px; font-size: 15px; letter-spacing: -0.01em; }
.x-apps-k { margin-right: 6px; color: var(--x-fg-3); }
.x-app { display: inline-flex; align-items: center; }
.x-app svg, .x-app .app-mark { width: 26px; height: 26px; display: block; flex: none; }

/* ---- plugins: app tabs over one window, a caption per app ------------------- */
.x-hostbar { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.x-host {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--x-line); background: #0a0a0a; color: var(--x-fg-2);
  font: inherit; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.x-host svg, .x-host .app-mark { width: 22px; height: 22px; display: block; flex: none; }
.x-host:hover { color: #fff; border-color: var(--x-line-2); }
.x-host.on { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: #111; }
.x-host i { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.x-host.on i { animation: x-fill var(--dur, 4.5s) linear forwards; }
.x-hostbar.held .x-host.on i, .x-hostbar.idle .x-host.on i { animation: none; transform: scaleX(1); }
@keyframes x-fill { to { transform: scaleX(1); } }
.x-shot { position: relative; margin: 0; }
.x-shot::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 4% 6% -4%;
  background: radial-gradient(40% 50% at 40% 46%, rgba(255, 106, 0, 0.16), transparent 70%);
  filter: blur(40px);
}
.x-shot-frame {
  position: relative; overflow: hidden; aspect-ratio: 1000 / 636;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #070707;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.x-host-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
  opacity: 0; transition: opacity 0.7s var(--x-ease);
}
.x-host-img.on { opacity: 1; }
/* Beside the shot: what the plugin really does in that app. One claim, one line, and a
   close-up from the app that proves it. The proofs stack in one cell and cross-fade with the tabs. */
.x-plugs { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 400px); gap: clamp(28px, 3.4vw, 56px); align-items: center; }
.x-rail { display: grid; }
.x-proof { grid-area: 1 / 1; align-self: center; min-width: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--x-ease), visibility 0s linear 0.5s; }
.x-proof.on { opacity: 1; visibility: visible; transition: opacity 0.5s var(--x-ease), visibility 0s; }
.x-proof-who { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; color: var(--x-fg-3); }
.x-proof-h { margin: 0 0 12px; color: #fff; font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.x-proof-p { margin: 0 0 22px; color: var(--x-fg-2); font-size: 15.5px; line-height: 1.55; letter-spacing: -0.005em; text-wrap: balance; }
.x-proof-btn {
  position: relative; display: flex; align-items: center; justify-content: center; height: 36px; margin: 0 0 14px;
  border: 1px solid #3a3a3a; background: #151515; color: #e8e8e8; font-size: 12.5px; font-weight: 500;
}
.x-proof-btn svg { position: absolute; right: 24%; top: 18px; width: 15px; height: 21px; }
.x-proof-card { border: 1px solid var(--x-line-2); background: #0a0a0a; }
.x-proof-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--x-line); font-size: 12.5px; font-weight: 500; color: var(--x-fg-2); }
.x-proof-bar s { flex: none; width: 7px; height: 7px; background: #7df9ff; }
.x-proof-card img { display: block; width: 100%; height: auto; }
@media (max-width: 1000px) {
  .x-plugs { grid-template-columns: minmax(0, 1fr); }
  .x-rail { max-width: 520px; }
}

.x-plug-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 36px; font-size: 14.5px; color: var(--x-fg-2); }

/* ---- reused sections: light retouches ------------------------------------------ */
#how .create-copy .x-head { grid-template-columns: 1fr; margin-bottom: 36px; }
#how .create-copy .x-lede { max-width: 44ch; }
/* Phones: the rails carry real filters, so the cards get real size: most of
   the screen wide and 4:3, which also crops the square previews less. */
@media (max-width: 700px) {
  #gallery .gal { gap: 12px; }
  #gallery .gcard { width: min(76vw, 320px); margin-right: 12px; }
  #gallery .gc-img { aspect-ratio: 4 / 3; }
  #gallery .gc-foot { padding: 11px 12px; }
  #gallery .gc-name { font-size: 14px; }
  #gallery .gc-fam { font-size: 12.5px; }
}
#download.section { padding-bottom: clamp(56px, 7vw, 104px); }
@media (min-width: 1001px) {
  #how .create-grid { align-items: start; }
  #how .create-copy { position: sticky; top: 112px; }
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
  #faq .x-head { grid-template-columns: 1fr; position: sticky; top: 112px; margin-bottom: 0; }
}

.dl-copy .x-lede { text-wrap: balance; }

/* ---- footer ------------------------------------------------------------------------ */
.x-foot { border-top: 1px solid var(--x-line); padding: 64px 0 36px; font-size: 13.5px; }
.x-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.6fr; gap: 40px; }
.x-foot .x-brand { margin-bottom: 14px; }
.x-foot p { margin: 0; color: var(--x-fg-3); line-height: 1.55; }
.x-foot h4 { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; color: var(--x-fg); letter-spacing: -0.005em; }
.x-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-foot a { color: var(--x-fg-2); text-decoration: none; transition: color 0.15s; }
.x-foot a:hover { color: #fff; }
.x-foot .nl-row { display: flex; gap: 6px; }
.x-foot .nl-in {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--x-line-2); background: rgba(255, 255, 255, 0.03); color: #fff; font: inherit; font-size: 13.5px;
}
.x-foot .nl-in:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); }
.x-foot .nl-row .btn { height: 38px; padding: 0 14px; background: #fff; color: #050505; border-color: #fff; font-weight: 600; font-size: 13px; }
.x-foot .nl-note { margin-top: 10px; font-size: 12.5px; color: var(--x-fg-3); }
.x-foot .nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.x-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--x-line); font-size: 12.5px; color: var(--x-fg-3);
}
.x-legal a { color: var(--x-fg-3); margin-left: 16px; }
.x-legal .synkit-by { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.x-legal .synkit-logo { height: 14px; width: auto; opacity: 0.7; }

/* ---- reveal -------------------------------------------------------------------------- */
.x-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--x-ease), transform 0.9s var(--x-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.x-rv.in, .rvshow .x-rv { opacity: 1; transform: none; }
.x-hero .x-rv { transition-duration: 1.1s; }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .x-links { gap: 22px; }
  .x-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .x-foot-grid > :first-child, .x-foot-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .x-links { display: none; }
  .x-nav-r { margin-left: auto; }
  .x-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 700px) {
  .x-nav { height: 58px; }
  .x-signin { display: none; }
  .x-hero { padding-top: 108px; }
  .x-arc { --p: 380px; --cw: 190px; height: 560px; }
  .x-hero::before { top: 100px; height: 520px; }
  .x-pill { font-size: 12.5px; margin-bottom: 24px; }
  .x-h1 { font-size: clamp(50px, 16vw, 70px); }
  .x-ctas { flex-direction: column; align-items: stretch; width: 100%; margin-top: 36px; }
  .x-ctas .x-btn { height: 48px; font-size: 15px; }
  .x-hostbar { gap: 4px; flex-wrap: nowrap; }
  .x-host { flex: 1; justify-content: center; height: 48px; padding: 0; }
  .x-host span { display: none; }
  .x-apps { gap: 10px 12px; margin-top: 36px; font-size: 14px; }
  .x-apps-k { margin-right: 4px; }
  .x-app svg, .x-app .app-mark { width: 24px; height: 24px; }
  .x-proof-h { font-size: 30px; }
  .x-proof-p { font-size: 15px; }
  .x-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .x-legal { flex-direction: column; align-items: flex-start; }
  .x-legal a:first-of-type { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-rv { opacity: 1; transform: none; transition: none; }
  .x-host.on i { animation: none; transform: scaleX(1); }
}

/* ---- create: the authoring chat (driven by authoring.js) ------------------------
   Mirrors the product's Create column: 352px, square, Inter, one composer; the
   accent (--cc) is cyan until the result's identity card recolors it. */
.x-ac { --cc: #7df9ff; display: grid; grid-template-columns: 352px minmax(0, 1fr); height: clamp(560px, 46vw, 660px); border: 1px solid var(--x-line-2); background: #070707; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.x-ac-col { display: flex; flex-direction: column; min-height: 0; background: #0a0a0a; border-right: 1px solid var(--x-line); }
.x-ac-top { display: flex; align-items: center; gap: 9px; height: 46px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--x-line); font-size: 13px; font-weight: 600; color: #fff; }
.x-ac-top svg { width: 14px; height: 14px; display: block; }
.x-ac-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 16px; }
.x-ac-msg.me { align-self: flex-end; max-width: 90%; padding: 10px 12px; background: #151515; border: 1px solid var(--x-line-2); font-size: 13.5px; line-height: 1.5; color: #f0f0f0; animation: x-in 0.35s var(--x-ease); }
.x-ac-msg.me p { margin: 7px 0 0; }
.x-ac-att { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--x-line-2); font-size: 11.5px; color: var(--x-fg-2); }
.x-ac-att svg, .x-ac-chip svg { width: 12px; height: 12px; display: block; }
.x-ac-phase { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--x-fg-2); animation: x-in 0.3s var(--x-ease); }
.x-ac-phase i { width: 8px; height: 8px; flex: none; background: var(--cc); box-shadow: 0 0 12px var(--cc); animation: x-pulse 1s ease-in-out infinite; }
@keyframes x-pulse { 50% { opacity: 0.35; } }
@keyframes x-in { from { opacity: 0; transform: translateY(6px); } }
.x-ac-code { flex: none; border: 1px solid var(--x-line-2); background: #0d0d0d; animation: x-in 0.35s var(--x-ease); }
.x-ac-code .h { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; border-bottom: 1px solid var(--x-line); font-size: 12px; color: var(--x-fg-2); }
.x-ac-code .h b { width: 14px; height: 14px; border: 1px solid var(--x-line-2); background: linear-gradient(#bbb, #bbb) center / 6px 6px no-repeat; }
.x-ac-code pre { margin: 0; padding: 10px 12px; max-height: 170px; overflow: hidden; font-family: inherit; font-size: 11.5px; line-height: 1.6; color: #b8b8b8; white-space: pre-wrap; word-break: break-word; font-variant-numeric: tabular-nums; }
.x-ac-code pre { transition: max-height 0.5s var(--x-ease), padding 0.5s var(--x-ease); }
.x-ac-code.done pre { max-height: 0; padding-top: 0; padding-bottom: 0; }
.x-ac-code.done .h { border-bottom-color: transparent; }
.x-ac-code.done .h b { width: 10px; height: 6px; border: 0; border-left: 1.5px solid #7df9ff; border-bottom: 1.5px solid #7df9ff; background: none; transform: translate(-2px, -2px) rotate(-45deg); }
.x-ac-code .k { color: #c3a6ff; } .x-ac-code .n { color: #fff; } .x-ac-code .f { color: #7df9ff; } .x-ac-code .c { color: #5f5f5f; }
.x-ac-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--cc) 16%, transparent); animation: x-in 0.45s var(--x-ease); }
.x-ac-card .g { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 55%, transparent); background: color-mix(in srgb, var(--cc) 12%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 22%, transparent); }
.x-ac-card .g svg { width: 16px; height: 16px; display: block; }
.x-ac-card b { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 600; color: var(--cc); }
.x-ac-card .t { flex: 1; min-width: 0; }
.x-ac-card .d { display: block; font-size: 12.5px; line-height: 1.45; color: var(--x-fg-2); }
.x-ac-comp { flex: none; margin: 0 12px 12px; padding: 8px 8px 7px; border: 1px solid var(--x-line-2); background: #0f0f0f; transition: border-color 0.15s, box-shadow 0.2s; }
.x-ac.can-send .x-ac-comp { border-color: color-mix(in srgb, var(--cc) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 12%, transparent); }
.x-ac-chips { display: flex; gap: 6px; }
.x-ac-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; margin-bottom: 8px; border: 1px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, transparent); font-size: 11.5px; color: #fff; animation: x-in 0.3s var(--x-ease); }
.x-ac-chip i { font-style: normal; color: var(--x-fg-3); margin-left: 2px; }
.x-ac-input { position: relative; min-height: 46px; padding: 0 2px; font-size: 14px; line-height: 1.5; color: var(--x-fg); }
.x-ac-ph { position: absolute; left: 2px; top: 0; color: var(--x-fg-3); pointer-events: none; }
.x-ac-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--cc); animation: x-caret 1s steps(1) infinite; }
@keyframes x-caret { 50% { opacity: 0; } }
.x-ac.sent .x-ac-caret { visibility: hidden; }
.x-ac-foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.x-ac-fb { display: grid; place-items: center; width: 26px; height: 26px; color: var(--x-fg-3); }
.x-ac-fb svg, .x-ac-send svg { width: 14px; height: 14px; display: block; }
.x-ac-hint { margin-left: auto; margin-right: 4px; font-size: 11px; color: #4d4d4d; }
.x-ac-send { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--x-line-2); color: var(--x-fg-3); transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.x-ac.can-send .x-ac-send { border-color: var(--cc); background: var(--cc); color: #031316; box-shadow: 0 0 16px color-mix(in srgb, var(--cc) 30%, transparent); }
.x-ac-canvas { position: relative; min-width: 0; background-color: #060606; background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.2px); background-size: 20px 20px; }
.x-ac-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .x-ac { grid-template-columns: 1fr; height: auto; }
  .x-ac-canvas { order: -1; aspect-ratio: 4 / 5; border-bottom: 1px solid var(--x-line); }
  .x-ac-col { border-right: 0; }
  .x-ac-log { height: 320px; flex: none; }
}
@media (prefers-reduced-motion: reduce) { .x-ac-caret, .x-ac-phase i { animation: none; } }

/* the result card's controls: real names, real values; one of them moves */
.x-ac-ctl { display: grid; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid color-mix(in srgb, var(--cc) 25%, transparent); }
.x-ac-ctl .r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--x-fg-2); }
.x-ac-ctl .r.col { grid-template-columns: 96px 14px minmax(0, 1fr); }
.x-ac-ctl .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.x-ac-ctl .v { text-align: right; color: #e5e5e5; font-variant-numeric: tabular-nums; transition: color 0.2s; }
.x-ac-ctl .r.col .v { text-align: left; }
.x-ac-ctl .tr { position: relative; height: 2px; background: rgba(255, 255, 255, 0.14); }
.x-ac-ctl .tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--cc); }
.x-ac-ctl .kn { position: absolute; top: 50%; left: var(--p); width: 9px; height: 9px; background: #fff; transform: translate(-50%, -50%); }
.x-ac-ctl .sw { width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, 0.25); }
.x-ac-ctl .r.live .k, .x-ac-ctl .r.live .v { color: var(--cc); }
.x-ac-card.past .x-ac-ctl { display: none; }

/* ---- generators: five cards, no live controls (a swipeable row on phones) ------ */
.x-gens { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.x-gen { display: flex; flex-direction: column; min-width: 0; }
.x-gen-img { aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--x-line); background: #0a0a0a; }
.x-gen-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--x-ease); }
.x-gen:hover .x-gen-img img { transform: scale(1.04); }
.x-gen h3 { display: flex; align-items: center; gap: 9px; margin: 16px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.x-gen h3 svg { width: 16px; height: 16px; display: block; flex: none; }
.x-gen p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--x-fg-2); text-wrap: pretty; }
@media (max-width: 1100px) {
  .x-gens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 30%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .x-gens::-webkit-scrollbar { display: none; }
  .x-gen { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .x-gens { grid-auto-columns: 68%; gap: 10px; margin-right: calc(var(--x-pad) * -1); padding-right: var(--x-pad); }
}
