/* Shared presentation for focused JMPKit agent integration pages. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--jk-bg);
  color: var(--jk-text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

button,
a {
  font: inherit;
}

.jk-site-header {
  position: fixed;
}

main {
  width: 100%;
}

.pi-slide {
  width: min(calc(100% - 2rem), 78rem);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(6rem, 12svh, 9rem) clamp(0.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pi-slide + .pi-slide {
  border-top: 1px solid color-mix(in srgb, var(--jk-line) 62%, transparent);
}

.pi-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 6vh, 3.75rem);
  color: var(--jk-text-soft);
  font: 400 1.25rem/1 "IBM Plex Mono", ui-monospace, monospace;
}

.pi-lockup img {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
  border-radius: 0.56rem;
}

.pi-lockup img:last-of-type {
  padding: 0.18rem;
  border: 1px solid var(--jk-line);
  background: var(--jk-surface);
}

.pi-lockup .integration-logo-plain {
  padding: 0.48rem;
  border: 1px solid var(--jk-line);
  background: var(--jk-surface);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  color: var(--jk-text);
  font-size: clamp(4.4rem, 13vw, 10.5rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-wrap: balance;
}

.pi-hero > p {
  margin-top: clamp(2.1rem, 6vh, 3.5rem);
  color: var(--jk-text-mid);
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  text-wrap: balance;
}

.pi-down {
  width: 2.9rem;
  height: 2.9rem;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jk-line);
  border-radius: 50%;
  color: var(--jk-text-soft);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.pi-down:hover {
  border-color: var(--jk-accent);
  color: var(--jk-accent);
  transform: translateY(0.18rem);
}

.pi-down svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pi-eyebrow {
  color: var(--jk-accent);
  font: 600 0.74rem/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  max-width: 13ch;
  margin-top: 1rem;
  color: var(--jk-text);
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  font-weight: 620;
  letter-spacing: -0.067em;
  line-height: 0.94;
  text-wrap: balance;
}

h2 span {
  color: var(--jk-text-soft);
}

.pi-prompt {
  width: min(100%, 56rem);
  min-height: 7.5rem;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--jk-line);
  border-radius: 1.25rem;
  background: var(--jk-surface);
  color: var(--jk-text);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--jk-shadow) 80%, transparent);
  cursor: copy;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.pi-prompt:hover,
.pi-prompt:focus-visible {
  border-color: var(--jk-accent);
  transform: translateY(-0.18rem);
  box-shadow: 0 28px 78px color-mix(in srgb, var(--jk-shadow) 100%, transparent);
}

.pi-prompt span {
  font: 500 clamp(1.08rem, 2.4vw, 1.55rem)/1.48 "IBM Plex Mono", ui-monospace, monospace;
  text-wrap: pretty;
}

.pi-prompt em {
  color: var(--jk-accent);
  font-style: normal;
}

.pi-command span {
  white-space: nowrap;
}

.pi-command b {
  margin-right: 0.45rem;
  color: var(--jk-text-soft);
  font-weight: 400;
}

.pi-prompt svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--jk-text-soft);
}

.pi-quiet {
  margin-top: 1.6rem;
  color: var(--jk-text-soft);
  font-size: clamp(0.92rem, 2vw, 1.04rem);
  line-height: 1.5;
  text-wrap: balance;
}

.pi-flow-line {
  width: min(100%, 64rem);
  margin-top: clamp(3.5rem, 9vh, 6.5rem);
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto minmax(2rem, 1fr) auto;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  color: var(--jk-text);
}

.pi-flow-line span {
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 600;
  white-space: nowrap;
}

.pi-flow-line svg {
  width: 100%;
  color: var(--jk-line-strong);
}

.pi-ready h2 {
  max-width: 10ch;
}

.pi-copy {
  min-width: 10.5rem;
  min-height: 3.25rem;
  margin-top: 2.5rem;
  padding: 0.8rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--jk-action-bg);
  border-radius: 0.65rem;
  background: var(--jk-action-bg);
  color: var(--jk-action-text);
  cursor: pointer;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pi-copy:hover,
.pi-copy:focus-visible {
  border-color: var(--jk-action-hover);
  background: var(--jk-action-hover);
  transform: translateY(-0.1rem);
}

.pi-copy svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pi-doc-link {
  margin-top: 1.25rem;
  color: var(--jk-text-mid);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.pi-doc-link:hover {
  color: var(--jk-accent);
}

footer {
  min-height: 5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--jk-line) 62%, transparent);
  color: var(--jk-text-soft);
  font-size: 0.8rem;
}

footer a {
  color: var(--jk-text);
  font-weight: 650;
  text-decoration: none;
}

.pi-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 1.25rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--jk-line);
  border-radius: 0.6rem;
  background: var(--jk-surface-strong);
  color: var(--jk-text);
  box-shadow: 0 14px 38px var(--jk-shadow);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.pi-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 700px) {
  .pi-slide {
    padding-inline: 0;
  }

  h1 {
    font-size: clamp(4.15rem, 22vw, 7rem);
  }

  .pi-prompt {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 1rem;
    text-align: center;
  }

  .pi-prompt svg {
    display: none;
  }

  .pi-command span {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .pi-flow-line {
    width: min(100%, 20rem);
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .pi-flow-line svg {
    width: 2.2rem;
    height: 1.1rem;
    justify-self: center;
    transform: rotate(90deg);
  }

  footer {
    justify-content: center;
  }

  footer a {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  .pi-prompt {
    background: color-mix(in srgb, var(--jk-surface) 88%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pi-down,
  .pi-prompt,
  .pi-copy,
  .pi-toast {
    transition: none;
  }
}
