/* "Add Xee with a single prompt": a light band with the dashboard's dot field, and a prompt card built like the
   dashboard's ask box. The copy script is the page's shared one (data-code-card, data-code-copy). */

.site-frame section.xp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(3rem, 6vw, 5.5rem) 24px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
  border-block: 1px solid #dfe6f6;
}
.xp .hero-dots {
  opacity: 0.4;
  z-index: -1;
}

.xp-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-inline: auto;
}

/* Left: what it is and what it does */
.xp-eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b5bdb;
}
.xp h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #0f172a;
  text-wrap: balance;
}
.xp-lead {
  max-width: 34ch;
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #4b5563;
}
.xp-steps {
  display: grid;
  gap: 0.875rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.xp-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
}
.xp-steps b {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid #cfd9f3;
  border-radius: 50%;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Right: the prompt card */
.xp-card {
  padding: 1.25rem 1.25rem 1rem;
  background: #ffffff;
  border: 1px solid #e1e6f3;
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 28px 64px -28px rgb(30 64 175 / 0.3);
}
.xp-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}
.xp-card__head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: #374151;
}
.xp-card__head svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #6b7280;
}
.xp-prompt {
  margin: 1rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.xp-prompt code {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.625rem;
  padding: 0.2em 0.55em;
  border: 1px solid #d6e1fb;
  border-radius: 0.45rem;
  background: #eef3ff;
  color: #1d4ed8;
  font-family: var(--font-code);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.xp-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eef0f6;
}
.xp-agents {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #6b7280;
}
.xp-agents img {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}
.xp-agents img[src*="codex"],
.xp-agents img[src*="cursor"],
.xp-agents img[src*="copilot"] {
  filter: invert(1) brightness(0.35);
}

/* The button: the one action */
.xp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem 0 0.875rem;
  border: 0;
  border-radius: 0.75rem;
  background: #171717;
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.xp-btn:hover {
  background: #262626;
}
.xp-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
.xp-btn svg {
  width: 1rem;
  height: 1rem;
}
.xp .code-card__copy-label {
  display: inline;
}
.xp-btn[data-copied] {
  background: #15803d;
}
.xp-btn[data-copied] svg {
  display: none;
}
.xp-btn[data-copied]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 880px) {
  .xp-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .xp-lead {
    max-width: 44ch;
  }
}
