/* Integration pages (/integrations/<slug>), overnight 19 Nov 2026. Loaded after products.css.
   Part 1 copies the product pages' shared rules this page uses, as they are in public/products/data-pipeline.css
   (build-product.mjs round 1 and round 2): hero, eyebrow glass tile, dark tile and rows, copy column, step buttons.
   products.css and the product pages' files are not edited (overnight rule 3). Part 2 is this page's own. */

/* ================= part 1: copied from the product pages ================= */
/* ---------- round 1: hero ---------- */
.px-hero {
  padding-bottom: clamp(var(--pn-space-12), 6vw, var(--pn-space-24));
}
.px-hero .px-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pn-space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .px-hero .px-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: var(--pn-space-16);
  }
}
.px-hero .pn-in {
  justify-items: start;
  text-align: left;
  gap: var(--pn-space-5);
}
.px-hero .pn-title {
  margin: 0;
  text-wrap: balance;
}
.px-hero .pn-sub {
  max-width: 34em;
}
.px-eyebrow {
  font: 600 var(--pn-type-small-size)/1.2 var(--pn-font-family-sans);
  color: var(--pn-text-body);
  letter-spacing: 0;
}
.px-hero .px-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pn-space-4) var(--pn-space-6);
  margin-top: var(--pn-space-3);
}
.px-lnk {
  display: inline-flex;
  align-items: center;
  gap: var(--pn-space-2);
  color: var(--pn-text-link);
  font: 500 var(--pn-type-ui-size)/1.4 var(--pn-font-family-sans);
  text-decoration: none;
  min-height: var(--pn-space-10);
}
.px-lnk svg {
  width: var(--pn-icon-xs);
  height: var(--pn-icon-xs);
  flex: none;
  transition: transform 0.2s var(--pn-easing-out);
}
.px-lnk:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.px-lnk:focus-visible {
  outline: 2px solid var(--pn-focus);
  outline-offset: 4px;
  border-radius: var(--pn-radius-xs);
}

/* the family aurora panel: the glass tile top left, the dark product tile centred */
.px-panel {
  border-radius: var(--pn-radius-2xl);
  box-shadow:
    inset 0 0 0 1px var(--pn-color-alpha-white-10),
    0 40px 90px -40px var(--pn-color-alpha-shade-92);
  display: grid;
  align-content: center;
  justify-items: center;
}
.px-panel > .px-tile {
  position: relative;
  z-index: 2;
}
/* round 4 (15 Nov 2026): the glass icon left the panel. It was 80px and the first thing the eye landed on ("it's overwhelming"),
   then a 40px corner mark, and then Andrew: "I'm not sure I like having the icon on the image gradient... maybe we create a
   small version in the hero eyebrow to pair with the product name". The panel now holds only the tile, with even padding. */
.px-hero .px-panel {
  min-height: clamp(360px, 38vw, 540px);
  padding: var(--pn-space-12) var(--pn-space-6);
}
@media (max-width: 639px) {
  .px-hero .px-panel {
    min-height: 0;
    padding: var(--pn-space-8) var(--pn-space-4);
  }
}
/* the eyebrow icon (round 4d, 15 Nov 2026, Andrew: "you used an older icon set ... look at the new live website of agent
   intelligence"). It is the live site's product glass tile: product.nav-glass.js is snowplow.io's public/agents/glass/nav-glass.js
   (main 37577be9, PR #570) as it is, which turns a frosted icon inside an .sn-it into the clear glass tile (a white line glyph on
   one still frame of the family aurora). product.js calls it on the eyebrow at this size. The frosted brand/*.svg in the markup
   is only the fallback without WebGL, as on the live site. The .sn-it class is the script's hook; the nav's .sn-it row styles
   are undone here. The tile box styles are the /agents bar's (.ag-site .nt in agents.css). */
.px-eb {
  display: inline-flex;
  align-items: center;
  gap: var(--pn-space-2);
}
.px-eb .px-eb-ic {
  --eb-ic: 28px;
  position: relative;
  flex: none;
  display: block;
  width: var(--eb-ic);
  height: var(--eb-ic);
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: none;
  transition: none;
}
.px-eb .px-eb-ic img {
  display: block;
  width: var(--eb-ic);
  height: var(--eb-ic);
}
.px-eb .nt {
  position: relative;
  display: block;
  flex: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 24px -12px rgba(4, 2, 12, 0.8);
}
.px-eb .nt .lg {
  position: absolute;
  pointer-events: none;
}
.px-eb .nt .lg-pane {
  position: absolute;
}
.px-eb .nt .lg svg {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}
.px-eb .nt canvas {
  position: absolute;
  display: block;
}
@media (max-width: 639px) {
  .px-eb .px-eb-ic {
    --eb-ic: 24px;
  }
}

/* ---------- round 1: the dark product tile ---------- */
.px-tile {
  width: min(100%, 420px);
  border-radius: var(--pn-radius-xl);
  background: var(--pn-color-ink-850);
  color: var(--pn-color-white);
  box-shadow:
    inset 0 0 0 1px var(--pn-color-alpha-white-12),
    0 40px 90px -40px var(--pn-color-alpha-shade-92);
  padding: var(--pn-space-4);
  display: grid;
  gap: var(--pn-space-2);
  font: 400 var(--pn-type-small-size)/1.4 var(--pn-font-family-sans);
  text-align: left;
}
.px-tile-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pn-space-3);
  padding: var(--pn-space-1) var(--pn-space-2) var(--pn-space-2);
}
.px-tile-h b {
  font-weight: 600;
  font-size: var(--pn-type-body-size);
  color: var(--pn-color-white);
}
.px-tile-h span {
  color: var(--pn-color-ink-400);
  font-size: var(--pn-type-caption-size);
  white-space: nowrap;
}
.px-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pn-space-3);
  min-height: var(--pn-space-12);
  padding: var(--pn-space-2) var(--pn-space-3);
  border-radius: var(--pn-radius-sm);
  background: var(--pn-color-alpha-white-05);
  min-width: 0;
}
.px-r > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.px-r b {
  font-weight: 500;
  color: var(--pn-color-white);
  overflow-wrap: anywhere;
}
.px-r small {
  color: var(--pn-color-ink-300);
  font-size: var(--pn-type-caption-size);
}
.px-r code,
.px-tile-h code {
  font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono);
  color: var(--pn-color-white);
  overflow-wrap: anywhere;
}
.px-r > .px-v {
  color: var(--pn-color-ink-300);
  font-size: var(--pn-type-caption-size);
  text-align: right;
  flex: none;
  max-width: 60%;
  overflow-wrap: anywhere;
}
.px-r > code.px-v {
  color: var(--pn-color-ink-100);
}
.px-copy {
  display: grid;
  gap: var(--pn-space-4);
  align-content: center;
  justify-items: start;
}
.px-copy h2,
.px-copy h3 {
  margin: 0;
  font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.0625rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--pn-text-head);
  max-width: 18em;
  text-wrap: balance;
}
.px-copy p {
  margin: 0;
  font-size: var(--pn-type-lede-size);
  line-height: var(--pn-type-lede-line);
  color: var(--pn-text-body);
  max-width: 30em;
}
/* ---------- round 1: one filled button per view. The nav's filled button goes to a tint while the hero's is on screen
   (homepage v3, round 12). Default with no script is the filled button, so a script failure cannot leave the page with none. */
html.px-nav-quiet .sn-btn.p {
  background: rgba(140, 152, 252, 0.18);
  box-shadow: inset 0 0 0 1px rgba(140, 152, 252, 0.4);
  color: var(--pn-color-ink-100);
}
html.px-nav-quiet .sn-btn.p:hover {
  background: rgba(140, 152, 252, 0.26);
}

/* ---------- round 1, second session: three faults measured on the first capture ----------
   1. Empty band above the breadcrumb. The library hero carries 128px of top padding and then the 72px nav spacer, so the
      crumb sat at y=200 under a 72px nav. The spacer already clears the nav; the hero keeps 24px above the crumb. */
.px-hero.pn-hero {
  padding-top: var(--pn-space-6);
}
.px-hero .pn-crumb {
  margin-bottom: clamp(var(--pn-space-8), 3vw, var(--pn-space-12));
}
/* 3. Plain right-hand values in a tile ("4", "2", "5") were 12px ink-300. They are the fact the row states. */
.px-r > span.px-v {
  color: var(--pn-color-white);
  font-size: var(--pn-type-body-size);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* 5. Secondary text inside the selected row measured 4.09:1 (ink-300 on the grey selected fill; floor 4.5:1). */
.px-r.sel small {
  color: var(--pn-color-ink-100);
}
/* ---------- step buttons shared by the graph and the pipeline chart: grey selected state, never violet ---------- */
.px-ig-steps,
.px-fl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--pn-space-2);
}
.px-ig-steps button,
.px-fl-steps button {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: var(--pn-space-6) minmax(0, 1fr);
  gap: var(--pn-space-3);
  align-items: start;
  text-align: left;
  padding: var(--pn-space-3);
  border: 0;
  border-radius: var(--pn-radius-lg);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10);
  color: var(--pn-text-body);
  font: 400 var(--pn-type-small-size)/1.5 var(--pn-font-family-sans);
  cursor: pointer;
  transition:
    background var(--pn-duration-hover),
    box-shadow var(--pn-duration-hover);
}
.px-ig-steps button:hover,
.px-fl-steps button:hover {
  background: var(--pn-surface-hover);
}
.px-ig-steps button:focus-visible,
.px-fl-steps button:focus-visible {
  outline: 2px solid var(--pn-focus);
  outline-offset: 2px;
}
.px-ig-steps button[aria-pressed='true'],
.px-fl-steps button[aria-pressed='true'] {
  background: var(--pn-surface-selected);
  box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30);
  color: var(--pn-color-ink-100);
}
.px-ig-steps button > i,
.px-fl-steps button > i,
.px-fl i[data-n] {
  font: 600 var(--pn-type-caption-size)/var(--pn-space-6)
    var(--pn-font-family-sans);
  font-style: normal;
  width: var(--pn-space-6);
  height: var(--pn-space-6);
  border-radius: 50%;
  text-align: center;
  background: var(--pn-color-ink-750);
  color: var(--pn-color-ink-100);
  transition:
    background 0.3s,
    color 0.3s;
}
.px-ig-steps button[aria-pressed='true'] > i,
.px-fl-steps button[aria-pressed='true'] > i {
  background: var(--pn-color-ink-100);
  color: var(--pn-color-ink-900);
}
.px-ig-steps button b,
.px-fl-steps button b {
  display: block;
  font-weight: 600;
  font-size: var(--pn-type-body-size);
  line-height: 1.35;
  color: var(--pn-text-head);
}
.px-ig-steps button span span,
.px-fl-steps button span span {
  display: block;
  margin-top: var(--pn-space-1);
}

/* ================= part 2: the integration page ================= */
/* Accents are brand violet (page-build-decisions, 17 Nov); backgrounds are the Ice aurora, as on every general page.
   Nothing travels on the page: direction is a still arrow, as on the product charts. */

/* hero panel: the partner's white logo tile and the Snowplow glass tile, joined by a still arrow, over the dark tile */
.ig-hp {
  position: relative;
  gap: var(--pn-space-8);
}
.ig-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--pn-space-4);
}
.ig-link.is-out {
  flex-direction: row-reverse;
}
.ig-link .ig-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--pn-radius-lg);
}
.ig-link .ig-logo img {
  width: 52px;
  height: 52px;
}
.ig-link .ig-sp {
  position: relative;
  width: 88px;
  height: 88px;
}
.ig-wire {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: clamp(56px, 8vw, 112px);
  height: 24px;
}
.ig-wire::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--pn-color-violet-300);
}
.ig-wire i {
  position: relative;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--pn-color-violet-300);
  border-right: 2px solid var(--pn-color-violet-300);
  transform: rotate(45deg);
  background: none;
}
.ig-wire i:not(:last-child) {
  display: none;
}
.ig-wire i:last-child {
  position: absolute;
  right: -1px;
  top: 7px;
}
.ig-card {
  width: min(100%, 400px);
}
.ig-card .px-r > span:first-child small {
  font-size: var(--pn-type-small-size);
  color: var(--pn-color-ink-200);
}
.ig-card .ig-v {
  font-weight: 600;
  text-align: right;
}
@media (max-width: 639px) {
  .ig-link .ig-logo,
  .ig-link .ig-sp {
    width: 72px;
    height: 72px;
  }
  .ig-link .ig-logo img {
    width: 42px;
    height: 42px;
  }
}

/* how it works: the steps on the left, the stage on the right with the three-box chart on a dark card */
.ig-fw {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pn-space-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .ig-fw {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--pn-space-16);
  }
}
.ig-fw .px-copy {
  gap: var(--pn-space-5);
}
.ig-steps {
  width: 100%;
}
.ig-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--pn-space-6);
}
.ig-fw .px-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 30vw, 440px);
  padding: var(--pn-space-12) var(--pn-space-6);
  border-radius: var(--pn-radius-2xl);
  box-shadow:
    inset 0 0 0 1px var(--pn-color-alpha-white-10),
    0 40px 90px -40px var(--pn-color-alpha-shade-92);
}
@media (max-width: 639px) {
  .ig-fw .px-stage {
    min-height: 0;
    padding: var(--pn-space-6) var(--pn-space-4);
  }
}
.ig-fl {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(100%, 620px);
  padding: var(--pn-space-5);
  border-radius: var(--pn-radius-xl);
  background: var(--pn-color-ink-850);
  box-shadow:
    inset 0 0 0 1px var(--pn-color-alpha-white-12),
    0 40px 90px -40px var(--pn-color-alpha-shade-92);
}
.ig-fl ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch;
}
.ig-n {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--pn-space-3);
  padding: var(--pn-space-5) var(--pn-space-3);
  border-radius: var(--pn-radius-lg);
  background: var(--pn-color-alpha-white-05);
  box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10);
  text-align: center;
  transition:
    box-shadow 0.35s var(--pn-easing-out),
    background 0.35s var(--pn-easing-out);
}
.ig-nt {
  display: grid;
  gap: var(--pn-space-1);
}
.ig-nt b {
  font: 600 var(--pn-type-small-size)/1.3 var(--pn-font-family-sans);
  color: var(--pn-color-white);
  overflow-wrap: anywhere;
}
.ig-nt small {
  font: 400 var(--pn-type-caption-size)/1.4 var(--pn-font-family-sans);
  color: var(--pn-color-ink-300);
}
.ig-n .ig-ni {
  position: relative;
  width: 48px;
  height: 48px;
}
.ig-n .ig-nl {
  width: 48px;
  height: 48px;
}
.ig-n .ig-nl img {
  width: 30px;
  height: 30px;
}
.ig-c {
  position: relative;
}
.ig-c i {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--pn-color-alpha-white-30);
  border-radius: 2px;
}
.ig-c i::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--pn-color-alpha-white-30);
  border-right: 2px solid var(--pn-color-alpha-white-30);
  transform: rotate(45deg);
}
/* the lit box: a violet ring and a faint violet fill, one box per step */
.ig-fl[data-step='0'] .ig-n[data-n='0'],
.ig-fl[data-step='1'] .ig-n[data-n='1'],
.ig-fl[data-step='2'] .ig-n[data-n='2'] {
  background: var(--pn-color-alpha-violet-16);
  box-shadow: inset 0 0 0 2px var(--pn-color-violet-300);
}
.ig-fl[data-step='0'] .ig-n[data-n='0'] small,
.ig-fl[data-step='1'] .ig-n[data-n='1'] small,
.ig-fl[data-step='2'] .ig-n[data-n='2'] small {
  color: var(--pn-color-ink-100);
}
@media (max-width: 639px) {
  .ig-fl {
    padding: var(--pn-space-3);
  }
  .ig-fl ol {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 24px auto 24px auto;
  }
  .ig-n {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: var(--pn-space-3);
  }
  .ig-n .ig-ni,
  .ig-n .ig-nl {
    width: 40px;
    height: 40px;
  }
  .ig-n .ig-nl img {
    width: 26px;
    height: 26px;
  }
  .ig-c i {
    left: 50%;
    right: auto;
    top: 3px;
    bottom: 3px;
    width: 2px;
    height: auto;
    margin: 0 0 0 -1px;
  }
  .ig-c i::after {
    right: -4px;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ig-n {
    transition: none;
  }
}

/* related integrations: the catalog's white logo tiles, six of them */
.ig-relh {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--pn-space-2) var(--pn-space-6);
  max-width: none;
}
.ig-relh .pn-h2 {
  margin: 0;
}
.ig-tiles {
  margin-top: var(--pn-space-8);
}
.ig-rel.pn-sec {
  padding-top: 0;
}
