/* /agents pages (Agent Intelligence). Additions to /polar-night/css/sections.css, scoped under .ag on <body>.
   Source: snowplow GTM workspace, motions/agent-intel-gtm/build/agents.css (built by build-agents-repo.mjs). */

/* Microsite bar (nav option C, 2 Nov 2026): lockup to snowplow.io, the three pages, then
   a quiet snowplow.io link, the frosted assessment button and Book a demo. Brand nav sizes:
   72px bar, 140px lockup, 40px buttons. Below 1280px the pages become a tab row under the bar;
   below 1024px the two extras go (sections.css already hides .pn-navr .pn-s there). */
.ag {
  --ag-navh: 72px;
  --ag-anchor: calc(var(--ag-navh) + 24px);
  /* Brand type scale (tokens 1.9.0): display at most 72px, section headings 30 to 40px.
     sections.css is a frozen copy of the brand package at 80px and 52px. */
  --pn-display: clamp(48px, calc(30px + 3.6vw), 72px);
  --pn-heading: clamp(30px, calc(22px + 1.25vw), 40px);
}
.ag .pn-display {
  max-width: 17em;
}
.ag main section,
.ag main [id] {
  scroll-margin-top: var(--ag-anchor);
}
.ag-nav .pn-wrap {
  height: auto;
  min-height: 72px;
  gap: 0 28px;
}
.ag-nav .pn-lk {
  width: 140px;
}
.ag-site {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: -14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.ag-site::before {
  content: '';
  width: 1px;
  height: 22px;
  background: rgba(243, 240, 248, 0.22);
}

/* The Agent Intelligence glass tile before the product name (2 Nov 2026): the product's tile from the brand repo's
   Products menu (snowplow-brand pull request 15), on one still frame of the analytics family's aurora. It wakes while the
   link is pointed at or focused. /agents/glass/nav-glass.js draws it and reads the tokens below (brand tokens 1.10.0,
   not yet in sections.css). Without WebGL the frosted icon in the markup stays. */
:root {
  --pn-menu-icon: 32px;
  --pn-color-family-analytics-edge: #8c98fc;
  --pn-color-family-analytics-ray: #c08cf6;
  --pn-color-family-analytics-glow: #2c2456;
  --pn-color-ink-900: #19132a;
}
.ag-site > img {
  width: var(--pn-menu-icon);
  height: var(--pn-menu-icon);
  margin-right: -4px;
}
.ag-site .nt {
  position: relative;
  display: block;
  flex: none;
  margin-right: -4px;
  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);
}
.ag-site .nt .lg {
  position: absolute;
  pointer-events: none;
}
.ag-site .nt .lg-pane {
  position: absolute;
}
.ag-site .nt .lg svg {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}
.ag-site .nt canvas {
  position: absolute;
  display: block;
}
.ag-links {
  display: flex;
  gap: 4px;
}
.ag-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.ag-links a:hover {
  color: var(--ink);
}
.ag-links a[aria-current] {
  color: var(--ink);
  background: rgba(243, 240, 248, 0.1);
}
.ag-nav .pn-navr {
  gap: 12px;
}
.ag-nav .pn-b {
  font-weight: 600;
}
.ag-nav .ag-jump {
  gap: 7px;
}
.ag-nav .ag-jump svg {
  width: 14px;
  height: 14px;
}
.ag-nav .ag-jump[hidden] {
  display: none;
}
@media (max-width: 1279px) {
  .ag {
    --ag-navh: 128px;
  }
  .ag-nav .pn-wrap {
    flex-wrap: wrap;
  }
  .ag-nav .pn-brand,
  .ag-site,
  .ag-nav .pn-navr {
    height: 72px;
  }
  .ag-links {
    order: 1;
    flex: 0 0 auto;
    width: calc(100% + 2 * var(--pn-gut));
    margin-inline: calc(-1 * var(--pn-gut));
    padding: 8px calc(var(--pn-gut) - 12px) 10px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: inset 0 1px 0 rgba(243, 240, 248, 0.06);
  }
  .ag-links::-webkit-scrollbar {
    display: none;
  }
  .ag-links a {
    flex: none;
    padding: 7px 12px;
  }
}
@media (max-width: 1023px) {
  .ag-nav .pn-wrap {
    gap: 0 12px;
  }
  .ag-nav .pn-lk {
    width: 104px;
  }
  .ag-site {
    margin-left: 0;
    gap: 12px;
    font-size: 15px;
  }
  .ag-site::before {
    height: 18px;
  }
  .ag-nav .pn-b {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
}
@media (max-width: 399px) {
  /* no room for the name: the tile stands for the product, and the name stays for screen readers */
  :root {
    --pn-menu-icon: 28px;
  }
  .ag-site > img,
  .ag-site .nt {
    margin-right: 0;
  }
  .ag-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Light footer: the lockup, the way back, and the legal links */
.ag-foot {
  background: var(--k-night);
  box-shadow: inset 0 1px 0 #2b2440;
}
.ag-foot .pn-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-block: 28px;
}
.ag-foot .pn-lk {
  width: 112px;
}
.ag-foot .pn-brand {
  color: var(--ink);
}
.ag-foot a,
.ag-foot span {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.ag-foot a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ag-foot .ag-fhome {
  font-weight: 600;
  color: var(--ink);
}
.ag-fhome::before {
  content: '\2190\00a0\00a0';
}
.ag-flegal {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
@media (max-width: 1023px) {
  .ag-flegal {
    margin-left: 0;
    width: 100%;
  }
}

/* Hero: one customer page and the requests it received (the Record) */
.ag-hp.pn-heropanel {
  max-height: none;
  padding: clamp(16px, 3.4vw, 48px);
}
.ag-scene {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .ag-scene {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 28px;
  }
}

.ag-page {
  border-radius: 14px;
  overflow: hidden;
  background: var(--k-screen);
  color: var(--k-screen-ink);
  box-shadow: var(--k-screen-sh);
  text-align: left;
}
.ag-url {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #eceaf2;
  border-bottom: 1px solid #dcd8e6;
}
.ag-url i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfcadb;
}
.ag-url span {
  margin-left: 8px;
  font: 500 12.5px/1.2 var(--pn-mono);
  color: #4a4560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-pbody {
  padding: 18px 18px 20px;
  display: grid;
  gap: 6px;
}
.ag-brand {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: #202060;
}
.ag-pt {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: #19132a;
  margin-top: 4px;
  outline: 1.5px solid var(--k-lilac);
  outline-offset: 4px;
  border-radius: 4px;
  justify-self: start;
}
.ag-ps {
  font-size: 14px;
  color: #5e5878;
}
.ag-fare {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px #e2dfee;
  font-size: 14px;
  color: #3b3654;
}
.ag-fare b {
  font-weight: 600;
  color: #19132a;
}
.ag-fare span:nth-child(2) {
  grid-column: 1;
  color: #5e5878;
  font-size: 13px;
}
.ag-fare em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-weight: 600;
  color: #19132a;
}

.ag-reqs {
  text-align: left;
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(16, 10, 30, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--k-glass);
  display: grid;
  gap: 8px;
}
.ag-rh {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.ag-rcols,
.ag-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: center;
}
.ag-rcols {
  padding: 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b3acc1;
}
.ag-row {
  position: relative;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(25, 19, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
  color: #e6e1f0;
}
.ag-row code {
  font: 500 13.5px/1.25 var(--pn-mono);
  color: #f3f0f8;
  overflow-wrap: anywhere;
}
.ag-row .ag-pp code {
  color: var(--k-lilac-t);
}
.ag-row.human {
  background: rgba(243, 240, 248, 0.1);
}
.ag-row.human .ag-pp,
.ag-row.human .ag-co {
  color: #dad4e6;
}
.ag-row.hl {
  box-shadow: none;
}
.ag-row.hl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: linear-gradient(115deg, #9e62dd 10%, #f49ad8 90%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
@media (max-width: 559px) {
  .ag-rcols {
    display: none;
  }
  .ag-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }
  .ag-row .ag-who {
    grid-column: 1;
  }
  .ag-row .ag-co {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .ag-row .ag-pp {
    grid-column: 1 / -1;
    font-size: 13.5px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .ag-reqs {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #19132a;
  }
}

/* Demo section: copy left, the form card on the aurora veil right */
.ag-demo .pn-g12 {
  align-items: center;
  row-gap: 32px;
}
.ag-demo .pn-in {
  display: grid;
  gap: 28px;
  align-content: start;
}
.ag-pending p {
  color: #45457a;
  font-size: 16.5px;
}
.ag-pending .pn-btns {
  margin-top: 4px;
}

/* Close: no glass mark here, so the heading needs no offset for it */
.ag .pn-close .pn-in {
  gap: 18px;
}

/* Hero: less space above the H1, so the highlighted request is above the fold at 1280x800 */
.ag-hero.pn-hero--display {
  padding-top: clamp(32px, 4vw, 56px);
}
.ag-hero .pn-heropanel {
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* How it works sits on the aurora ribbons, so the page keeps a ground below the hero */
.ag-howsec {
  background:
    linear-gradient(
      180deg,
      #0f0a1a 0,
      rgba(15, 10, 26, 0.55) 45%,
      #0f0a1a 100%
    ),
    url(/polar-night/assets/aurora-ribbons.jpg) 50% 60% / cover no-repeat,
    #0f0a1a;
}
/* Three steps: one column until there is room for all three */
@media (min-width: 640px) and (max-width: 1023px) {
  .ag .pn-steps4.n3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Close: the main button is snow on the aurora band (violet on the ribbons is a control at under 3:1) */
.ag-close .pn-b.pn-p {
  background: #fff;
  color: #3b2390;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 12px 30px -12px rgba(5, 2, 14, 0.7);
}
.ag-close .pn-b.pn-p:hover {
  background: #f1ecfb;
}
.ag-close .pn-p .pn-disc {
  background: #6738b8;
  color: #fff;
}

/* ===== v2 (2026-10-15): hero chat, story, flow, industry tabs ===== */

/* Hero: phone chat, the request, then the page's record */
.ag-hp .ag-scene {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
@media (min-width: 1024px) {
  .ag-hp .ag-scene {
    grid-template-columns: 300px minmax(120px, 1fr) minmax(0, 520px);
    justify-items: stretch;
    align-items: start;
    gap: 0;
  }
}
.ag-phone {
  width: min(300px, 100%);
  border-radius: 34px;
  padding: 10px;
  background: #e9e6f1;
  box-shadow: 0 30px 80px rgba(4, 1, 14, 0.55);
  text-align: left;
}
.ag-pin {
  border-radius: 26px;
  overflow: hidden;
  background: #f4f2f9;
  color: #19132a;
}
.ag-phead {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #e2dfee;
}
.ag-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9e62dd, #f49ad8);
  flex: none;
}
.ag-phead b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.ag-phead small {
  display: block;
  font-size: 12.5px;
  color: #5e5878;
}
.ag-pchat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 18px;
}
.ag-cm {
  max-width: 86%;
  margin: 0;
  padding: 9px 12px 7px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.38;
}
.ag-cm.me {
  align-self: flex-end;
  background: #e3d7f8;
  border-bottom-right-radius: 5px;
}
.ag-cm.ag {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(27, 24, 48, 0.08);
}
.ag-cm time {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #5e5878;
  text-align: right;
}
.ag-cm.ag-cards {
  width: 94%;
  max-width: 94%;
  padding: 2px 12px;
}
.ag-fo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 9px 0;
  border-bottom: 1px solid #e2dfee;
  font-size: 13.5px;
}
.ag-fo:last-child {
  border-bottom: 0;
}
.ag-fo b {
  font-weight: 600;
}
.ag-fo em {
  font-style: normal;
  font-weight: 700;
  color: #1f4d22;
}
.ag-fo small {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #5e5878;
}
.ag-mk {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
  margin-right: 5px;
  color: #19132a;
}
.ag-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
}
.ag-lline {
  display: none;
}
.ag-lchip {
  font: 500 12.5px/1.2 var(--pn-mono);
  color: #f3f0f8;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(25, 19, 42, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .ag-link {
    align-self: start;
    margin-top: 196px;
    min-height: 0;
    height: 40px;
  }
  .ag-lline {
    display: block;
    position: absolute;
    left: -6px;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(158, 98, 221, 0.2),
      #9e62dd 30%,
      #9e62dd
    );
  }
  .ag-lline::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    border: 5px solid transparent;
    border-left: 7px solid #9e62dd;
  }
  .ag-lchip {
    position: relative;
  }
  .ag-hp .ag-reqs {
    align-self: start;
    margin-top: 120px;
  }
}
@media (max-width: 1023px) {
  .ag-hp .ag-reqs {
    width: 100%;
    max-width: 560px;
  }
}

/* What you see: the pinned story */
.ag-st {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
.ag-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 56px;
}
.ag-step {
  display: grid;
  gap: 12px;
  align-content: center;
}
.ag-step p {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 34em;
}
.ag-sn {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--k-lilac-t);
}
.ag-smob {
  margin-top: 12px;
}
.ag-stage {
  display: none;
}
@media (min-width: 1024px) {
  .ag-js .ag-st {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
  .ag-js .ag-steps {
    gap: 0;
  }
  .ag-js .ag-step {
    min-height: 62vh;
    padding: 24px 0;
    opacity: 0.5;
    transition: opacity 0.3s;
  }
  .ag-js .ag-step:first-child {
    min-height: 46vh;
    align-content: start;
  }
  .ag-js .ag-smob {
    display: none;
  }
  .ag-js .ag-stage {
    display: block;
    position: sticky;
    top: calc(50vh - 190px);
    align-self: start;
    height: 420px;
  }
  .ag-js .ag-st:has(.ag-stage[data-s='1']) .ag-step[data-step='1'],
  .ag-js .ag-st:has(.ag-stage[data-s='2']) .ag-step[data-step='2'],
  .ag-js .ag-st:has(.ag-stage[data-s='3']) .ag-step[data-step='3'],
  .ag-js .ag-st:has(.ag-stage[data-s='4']) .ag-step[data-step='4'] {
    opacity: 1;
  }
}
.ag-panels {
  position: relative;
  height: 100%;
}
.ag-pn {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s var(--pn-ease),
    transform 0.45s var(--pn-ease);
  pointer-events: none;
}
.ag-stage[data-s='1'] .ag-pn[data-p='1'],
.ag-stage[data-s='2'] .ag-pn[data-p='2'],
.ag-stage[data-s='3'] .ag-pn[data-p='3'],
.ag-stage[data-s='4'] .ag-pn[data-p='4'] {
  opacity: 1;
  transform: none;
}
.ag-dots {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.ag-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(243, 240, 248, 0.3);
  transition:
    height 0.3s,
    background 0.3s;
}
.ag-stage[data-s='1'] [data-d='1'],
.ag-stage[data-s='2'] [data-d='2'],
.ag-stage[data-s='3'] [data-d='3'],
.ag-stage[data-s='4'] [data-d='4'] {
  height: 22px;
  background: #f3f0f8;
}
@media (prefers-reduced-motion: reduce) {
  .ag-pn,
  .ag-step,
  .ag-dots i {
    transition: none;
  }
}

.ag-glass {
  text-align: left;
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(16, 10, 30, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--k-glass);
  display: grid;
  gap: 10px;
  align-content: start;
}
.ag-stage .ag-glass {
  height: 100%;
}
.ag-gh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ag-gh span {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.ag-gh small {
  font-size: 13px;
  color: #b3acc1;
}
.ag-ltbl {
  display: grid;
  gap: 8px;
}
.ag-lrow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(25, 19, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 14.5px;
  color: #e6e1f0;
}
.ag-lrow code {
  font: 500 13.5px/1.25 var(--pn-mono);
  color: #f3f0f8;
  overflow-wrap: anywhere;
}
.ag-lrow.ag-lhead {
  background: none;
  box-shadow: none;
  padding-block: 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b3acc1;
}
.ag-ltbl:not(.why) .ag-wcol {
  visibility: hidden;
}
.ag-ltbl.why .ag-lrow:not(.ag-lhead) .ag-wcol {
  color: var(--k-lilac-t);
}
.ag-ltbl.why .ag-wcol.none {
  color: #b3acc1;
}
.ag-key {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: #dad4e6;
}
.ag-key span::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 6px;
  border-radius: 3px;
  margin-right: 7px;
  vertical-align: 2px;
}
.ag-ka::before {
  background: #9e62dd;
}
.ag-kh::before {
  background: rgba(243, 240, 248, 0.6);
}
.ag-prow {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(25, 19, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ag-prow code {
  font: 500 13.5px/1.25 var(--pn-mono);
  color: #f3f0f8;
  overflow-wrap: anywhere;
}
.ag-bars {
  display: grid;
  gap: 5px;
}
.ag-bars i {
  display: block;
  height: 8px;
  border-radius: 4px;
  width: var(--w);
}
.ag-ba {
  background: #9e62dd;
  box-shadow: 0 0 12px rgba(158, 98, 221, 0.55);
}
.ag-bh {
  background: rgba(243, 240, 248, 0.6);
}
.ag-flag {
  font-size: 13.5px;
  color: #f3c4e6;
}
.ag-prow.hl,
.ag-glass .ag-row.hl {
  box-shadow: none;
}
.ag-prow.hl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: linear-gradient(115deg, #9e62dd 10%, #f49ad8 90%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.ag-co-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(25, 19, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ag-coname {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.ag-cobar {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #dad4e6;
}
.ag-bh.solo {
  background: rgba(243, 240, 248, 0.6);
}
@media (max-width: 559px) {
  .ag-lrow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
  }
  .ag-lrow .ag-wcol {
    grid-column: 1 / -1;
  }
  .ag-lrow.ag-lhead {
    display: none;
  }
  .ag-ltbl:not(.why) .ag-wcol {
    display: none;
  }
}

/* How it works: frosted nodes joined by one path */
.ag-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: n;
}
.ag-node {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035)
    ),
    rgba(16, 10, 30, 0.78);
  box-shadow: var(--k-glass);
}
.ag-node .pni {
  width: 44px;
  height: 44px;
}
.ag-node .pn-h3 {
  font-size: 21px;
}
.ag-node p {
  font-size: 15.5px;
  color: #dad4e6;
}
.ag-node.key::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: #9e62dd;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.ag-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 2px;
  height: 28px;
  background: rgba(243, 240, 248, 0.35);
}
@media (min-width: 1024px) {
  .ag-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .ag-node:not(:last-child)::after {
    left: auto;
    right: -32px;
    top: 46px;
    bottom: auto;
    width: 32px;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(243, 240, 248, 0.35),
      rgba(243, 240, 248, 0.55)
    );
  }
  .ag-node.src::after,
  .ag-flow .ag-node:nth-child(2)::after,
  .ag-node.key::after {
    background: #9e62dd;
  }
}
.ag-chipw {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.ag-ent {
  white-space: normal;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 100%;
}
.ag-ent em {
  overflow-wrap: anywhere;
}

/* By industry: tabs with a customer screen */
.ag-tabs {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ag-js .ag-tabs {
  display: flex;
}
.ag-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 12px;
  border-radius: 14px;
  border: 0;
  font: 500 16px/1 var(--pn-sans);
  color: var(--ink-2);
  background: rgba(243, 240, 248, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.ag-tabs button .pni {
  width: 28px;
  height: 28px;
}
.ag-tabs button:hover {
  color: #fff;
}
.ag-tabs button[aria-selected='true'] {
  color: #fff;
  background: rgba(243, 240, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.ag-tp {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.ag-tp + .ag-tp {
  margin-top: 48px;
}
.ag-js .ag-tp + .ag-tp {
  margin-top: 0;
}
.ag-js .ag-tp[data-off] {
  display: none;
}
@media (min-width: 1024px) {
  .ag-tp {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
  }
}
.ag-tcopy {
  display: grid;
  gap: 14px;
}
.ag-tcopy p {
  color: var(--ink-2);
  font-size: 17px;
}
.ag-iscreen {
  position: relative;
  border-radius: 24px;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(40px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(15, 10, 26, 0.1), rgba(15, 10, 26, 0.35)),
    url(/polar-night/assets/aurora-veil.jpg) 60% 45% / cover no-repeat,
    #0f0a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.ag-iscreen .ag-page {
  max-width: 460px;
  margin: 0 auto;
}
.ag-pt.nol {
  outline: 0;
}
.ag-copyline {
  font-size: 14.5px;
  line-height: 1.5;
  color: #3b3654;
  margin-top: 6px;
}
.ag-ad {
  margin-top: 10px;
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 8px;
  border: 1px dashed #cfcadb;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6782;
}
.ag-fare em.btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: #19132a;
  color: #fff;
  font-size: 13px;
}
.ag-ichip {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 24px);
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
}
.ag-ichip .pn-rc {
  white-space: normal;
}

/* v2 round 2 fixes */
@media (min-width: 1024px) {
  .ag-hp .ag-scene {
    grid-template-columns: 290px minmax(200px, 1fr) minmax(0, 470px);
  }
  .ag-hp .ag-reqs {
    margin-top: 96px;
  }
  .ag-link {
    margin-top: 172px;
  }
  .ag-lchip {
    font-size: 12px;
    padding: 6px 9px;
  }
  .ag-js .ag-stage {
    height: auto;
    min-height: 420px;
    padding: 28px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  .ag-js .ag-stage .ag-panels {
    min-height: 364px;
  }
  .ag-js .ag-stage .ag-pn {
    inset: 0 0 auto 0;
  }
  .ag-dots {
    left: -36px;
  }
}
.ag-stage .ag-glass {
  height: auto;
}
.ag-tcopy .pn-h3 {
  font-size: clamp(24px, calc(20px + 0.8vw), 30px);
  line-height: 1.2;
}
@media (max-width: 639px) {
  .ag-js .ag-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pn-gut));
    padding-inline: var(--pn-gut);
  }
  .ag-tabs::-webkit-scrollbar {
    display: none;
  }
  .ag-tabs button {
    flex: none;
    height: 46px;
  }
}
.ag-ltbl.why .ag-lrow:not(.ag-lhead) .ag-wcol.none {
  color: #b3acc1;
}
@media (min-width: 1024px) {
  .ag-js .ag-stage {
    min-height: 0;
  }
  .ag-js .ag-stage .ag-panels {
    min-height: 330px;
  }
}
.ag-ichip .pn-rc em,
.ag-chipw .pn-rc em {
  font-family: var(--pn-sans);
  font-size: 14px;
}
.ag-chipw .pn-rc em {
  font-family: var(--pn-mono);
  font-size: 13.5px;
}
@media (min-width: 640px) {
  .ag-ichip .pn-rc {
    white-space: nowrap;
  }
  .ag-ichip {
    max-width: none;
  }
}
/* Inactive story steps dim to 80%, which keeps every line above 4.5:1 (measured) */
@media (min-width: 1024px) {
  .ag-js .ag-step {
    opacity: 0.8;
  }
}
.ag-url span {
  min-width: 0;
  flex: 1;
}
.ag-ichip .pn-rc,
.ag-chipw .pn-rc {
  background: rgba(25, 19, 42, 0.94);
}
@media (max-width: 559px) {
  .ag-url span {
    font-size: 12px;
  }
}
@media (max-width: 639px) {
  .ag-iscreen {
    padding-bottom: 16px;
  }
  .ag-ichip {
    position: static;
    transform: none;
    max-width: none;
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
}

/* ===== v2 round 3 (2026-10-15) ===== */
/* Story: the dots sit outside the plate, every step centres on the stage, the box fits the tallest panel */
.ag-stage.pn-veil {
  overflow: visible;
}
.ag-stage.pn-veil::before {
  border-radius: inherit;
}
@media (min-width: 1024px) {
  .ag-js .ag-stage .ag-panels {
    min-height: 380px;
  }
  .ag-js .ag-step,
  .ag-js .ag-step:first-child {
    min-height: 52vh;
    align-content: center;
  }
}
/* How it works: a flow, not cards. Short labels on frosted pills along one lilac path, captions under them */
.ag-flow2 {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
.ag-flow2::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(158, 98, 221, 0.35),
    #9e62dd 40%,
    #9e62dd 75%,
    rgba(243, 240, 248, 0.35)
  );
}
.ag-n {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-left: 0;
}
.ag-npill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.04)
    ),
    rgba(16, 10, 30, 0.9);
  box-shadow: var(--k-glass);
}
.ag-npill .pni {
  width: 36px;
  height: 36px;
}
.ag-npill b {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.ag-n.key .ag-npill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: #9e62dd;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
.ag-ncap {
  font-size: 16px;
  color: #dad4e6;
  max-width: 30em;
  padding-left: 66px;
}
.ag-nchip {
  display: grid;
  justify-items: start;
  padding-left: 66px;
}
.ag-nlead {
  display: none;
}
@media (min-width: 1024px) {
  .ag-flow2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .ag-flow2::before {
    left: 12%;
    right: 12%;
    top: 30px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(243, 240, 248, 0.35),
      #9e62dd 30%,
      #9e62dd 70%,
      rgba(243, 240, 248, 0.35)
    );
  }
  .ag-n {
    justify-items: center;
    text-align: center;
  }
  .ag-ncap {
    padding-left: 0;
    max-width: 17em;
    font-size: 15.5px;
  }
  .ag-nchip {
    padding-left: 0;
    justify-items: center;
  }
  .ag-nlead {
    display: block;
    width: 2px;
    height: 22px;
    background: #9e62dd;
  }
  .ag-nchip .pn-rc {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}
/* Industry tabs: copy column top-aligned so the heading doesn't move between tabs; a plain ad slot; a seat map */
.ag-tp {
  align-items: start;
}
.ag-tcopy {
  padding-top: clamp(8px, 2vw, 32px);
}
.ag-ad {
  border: 0;
  background: #e9e6f1;
}
.ag-seats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 10px 0 4px;
  max-width: 260px;
}
.ag-seats i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8d3e4;
}
.ag-seats i:nth-child(6n + 3) {
  margin-right: 10px;
}
.ag-seats i.taken {
  background: #dcd7e7;
  box-shadow: none;
}
.ag-seats i.on {
  background: #19132a;
  box-shadow: 0 0 0 2px #9e62dd;
}
/* Hero: the request line ends on the highlighted row, at its midpoint (measured at 1440 and 1280) */
@media (min-width: 1024px) {
  .ag-link {
    margin-top: 188px;
    z-index: 2;
  }
  .ag-lline {
    right: -18px;
  }
}
.ag-ad {
  color: #57516e;
}
.ag-n {
  align-content: start;
}

/* FAQ: each question is a heading inside its summary, so the FAQPage markup matches the page */
.ag .pn-qa summary h3 {
  font: inherit;
  color: inherit;
}
