/* The AI assistants section: an example exchange beside what the connector is and is not allowed
   to do.

   Owned apart from landing.css for the same reason landing-comparison.css is: it is one section
   with its own vocabulary (a thread, a connector address, a list of clients) and nothing else on
   the page reuses it. Every colour is a shared token, so both themes follow without a rule of
   their own, and nothing here changes geometry between them. */
.assistant-stage {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

/* One painted surface, and the turns inside it are the only thing nested in it. The rest of the
   section is type on the page, divided by rules, because a card around each of the URL, the
   clients and the promises would be three frames around a sentence apiece. */
.assistant-exchange {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--landing-radius-lg);
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 46%),
    var(--glass-fill);
  box-shadow:
    inset 0 0 0 1px var(--glass-stroke),
    var(--shadow-surface);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .assistant-exchange {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    background:
      linear-gradient(180deg, var(--glass-highlight), transparent 46%),
      var(--glass-fill-quiet);
  }
}

.assistant-thread {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  list-style: none;
}

.assistant-turn {
  min-width: 0;
  display: grid;
  gap: 4px;
  max-width: 92%;
}

.assistant-turn__who {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.assistant-turn p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.assistant-turn strong {
  font-weight: 600;
}

/* The person's turns sit on the right and carry the soft blue the page uses for selection; the
   assistant's answer is plain type on the card. Alignment and fill say who is speaking, so the
   small label is a courtesy to a screen reader and not the only signal. */
.assistant-turn--you {
  justify-self: end;
  justify-items: end;
  text-align: right;
}

.assistant-turn--you p {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  text-align: left;
}

.assistant-exchange figcaption {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.4;
}

.assistant-details {
  min-width: 0;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.assistant-details h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

/* The address is the one thing a reader must copy exactly, so it is set as code on a soft ground
   and allowed to break anywhere: at 320px it is wider than the column. */
.assistant-url {
  max-width: 100%;
  margin: 0;
}

.assistant-url code {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--text);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.assistant-clients {
  display: grid;
  gap: 8px;
}

.assistant-clients__label {
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.assistant-clients__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.assistant-clients__list li {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--card-badge-fill);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.assistant-clients__list .assistant-clients__more {
  padding-inline: 4px;
  background: transparent;
  color: var(--muted);
}

/* A rule between rows rather than a box around each: three promises, one shared left edge. */
.assistant-promises {
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.assistant-promises li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.assistant-promises li:last-child {
  border-bottom: 1px solid var(--line);
}

.assistant-promises strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .assistant-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .assistant-stage {
    width: min(var(--container), calc(100% - 36px));
  }

  .assistant-exchange {
    padding: 16px;
  }

  .assistant-turn {
    max-width: 100%;
  }

  .assistant-details .btn {
    width: 100%;
  }
}
