/*
 * Vision agents, the conveyor demos and the industrial solution pages.
 *
 * Loaded after site-fixes.css, and only on the pages that use these blocks.
 * Type sizes, colours and the 12-column grid still come from the Webflow
 * export; this file adds the pieces the export never had.
 */

/* ------------------------------------------------------------------ *
 * Layout
 * ------------------------------------------------------------------ */

.ax-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.ax-section--first {
  padding-top: 180px;
}

.ax-section--flush-top {
  padding-top: 0;
}

.ax-gray {
  background-color: var(--color--gray-2);
}

.ax-dark {
  background-color: var(--color--green-dark);
  color: var(--white);
}

.ax-span-5 { grid-column: span 5 / span 5; }
.ax-span-6 { grid-column: span 6 / span 6; }
.ax-start-7 { grid-column: 7 / span 6; }
.ax-start-8 { grid-column: 8 / span 5; }
.ax-full { grid-column: 1 / -1; }

/* Agent sections: copy on one side, the demo on the other. .ax-flip swaps
   the sides on desktop while the copy stays first in reading order. */
.ax-text {
  grid-column: 1 / span 5;
  grid-row: 1;
  align-self: center;
}

.ax-media {
  grid-column: 7 / span 6;
  grid-row: 1;
  align-self: center;
}

.ax-flip > .ax-text {
  grid-column: 8 / span 5;
}

.ax-flip > .ax-media {
  grid-column: 1 / span 6;
}

.ax-figure {
  margin: 0;
}

.ax-gap-l {
  margin-top: 48px;
}

.ax-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ax-stack--tight {
  gap: 12px;
}

/* .tag centres its contents and would stretch across a flex column. */
.ax-stack > .tag {
  align-self: flex-start;
}

.ax-lead {
  max-width: 560px;
}

.ax-muted {
  color: var(--color--black-80);
}

.ax-dark .ax-muted,
.ax-dark .body-regular {
  color: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 991px) {
  .ax-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .ax-section--first {
    padding-top: 140px;
  }

  .ax-section--flush-top {
    padding-top: 0;
  }

  .ax-span-5,
  .ax-span-6,
  .ax-start-7,
  .ax-start-8,
  .ax-text,
  .ax-media,
  .ax-flip > .ax-text,
  .ax-flip > .ax-media {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Tags on the dark sections: white text, brackets inverted to white. */
.ax-dark .tag,
.ax-dark .tag div {
  color: var(--white);
}

.ax-dark .tag img {
  filter: invert(1);
}

/* ------------------------------------------------------------------ *
 * Bold-lead points, as in the sales decks
 * ------------------------------------------------------------------ */

.ax-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color--black-5);
}

.ax-points li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color--black-5);
  font-family: var(--sans);
  font-size: var(--text-styles--body-m);
  line-height: 1.5;
  color: var(--color--black-80);
}

.ax-points strong {
  font-weight: 500;
  color: var(--color--black);
}

.ax-dark .ax-points,
.ax-dark .ax-points li {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
}

.ax-dark .ax-points strong {
  color: var(--white);
}

.ax-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color--green-dark);
}

.ax-status::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.ax-status--soon {
  color: var(--color--black-50);
}

/* ------------------------------------------------------------------ *
 * Use case -> agent table
 * ------------------------------------------------------------------ */

.ax-usecases {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
}

.ax-usecase {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--color--black-5);
}

.ax-usecase--head {
  padding-top: 0;
  font-size: 14px;
  color: var(--color--black-50);
}

.ax-usecase__num {
  font-size: 14px;
  color: var(--color--black-50);
  font-variant-numeric: tabular-nums;
}

.ax-usecase__need,
.ax-usecase__agent {
  font-size: var(--text-styles--header-xs);
  font-weight: 500;
  line-height: 1.3;
}

.ax-usecase__agent,
.ax-usecase__agent a {
  color: var(--color--green-dark);
}

.ax-usecase__agent a {
  text-decoration: none;
}

.ax-usecase__agent a:hover {
  text-decoration: underline;
}

.ax-usecases-note {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color--black-50);
}

.ax-usecases-note a {
  color: var(--color--green-dark);
}

@media screen and (max-width: 1100px) {
  .ax-usecase {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 6px;
  }

  .ax-usecase__agent {
    grid-column: 2;
  }

  .ax-usecase--head {
    display: none;
  }
}

/* ------------------------------------------------------------------ *
 * Camera frame with the agent's overlay
 * ------------------------------------------------------------------
 * The overlay copies the deck treatment: a black pill naming the camera, a
 * light-green pill for the action taken, light-green corner brackets and a
 * label on the object. Its type scales with the player, so the labels keep
 * their proportion from a phone to a wide screen.
 */

.cam {
  margin: 0;
}

.cam__frame {
  padding: 0;
  border-radius: 12px;
  background-color: transparent;
}

.ax-dark .cam__frame {
  background-color: transparent;
}

.cam__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-color: #0f1211;
  container-type: inline-size;
}

.cam__screen > video,
.cam__screen > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--sans);
  font-size: clamp(10px, 1.85cqw, 16px);
  font-weight: 500;
  line-height: 1.2;
}

.cam-pill {
  position: absolute;
  padding: 0.45em 0.75em;
  border-radius: 0.45em;
  white-space: nowrap;
}

.cam-pill--source {
  top: 4.5%;
  left: 2.5%;
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
}

.cam-pill--alert {
  top: 4.5%;
  right: 2.5%;
  background-color: var(--color--green);
  color: #1b1e1d;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cam-pill--alert.is-on {
  opacity: 1;
  transform: none;
}

.cam-pill--state {
  left: 2.5%;
  bottom: 5%;
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
}

.cam-pill--state[data-state="empty"] {
  background-color: var(--color--red);
  color: #1b1e1d;
}

.cam-box {
  --c: var(--color--green);
  --l: clamp(10px, 2.4cqw, 24px);
  --t: 2px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.15s linear;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}

.cam-box.is-on {
  opacity: 1;
}

.cam-box__label {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45em);
  padding: 0.4em 0.7em;
  border-radius: 0.4em;
  background-color: var(--color--green);
  color: #1b1e1d;
  white-space: nowrap;
}

/* Near the top edge there is no room above the box, and the camera pill is
   there anyway, so the label moves inside the box along its bottom edge. */
.cam-box.is-top .cam-box__label {
  bottom: 0.55em;
  left: 0.55em;
}

.cam-box.is-right .cam-box__label {
  left: auto;
  right: 0;
}

.cam-box.is-top.is-right .cam-box__label {
  right: 0.55em;
}

/* Defect labels stay outside the outline. A box near the top gets the
   label underneath it, so the marked area stays visible. */
.cam-box--defect.is-top .cam-box__label,
.cam-box--defect.is-top.is-right .cam-box__label {
  top: calc(100% + 0.45em);
  bottom: auto;
  left: 0;
  right: auto;
}

.cam-box--defect.is-right .cam-box__label,
.cam-box--defect.is-top.is-right .cam-box__label {
  left: auto;
  right: 0;
}

/* On a narrow player the pills along the top edge would collide: the camera
   pill goes, and the object label stays inside its box. */
@container (max-width: 560px) {
  .cam-pill--source {
    display: none;
  }

  .cam-box .cam-box__label,
  .cam-box.is-top .cam-box__label {
    top: auto;
    bottom: 0.55em;
    left: 0.55em;
    right: auto;
  }

  .cam-box.is-right .cam-box__label {
    left: auto;
    right: 0.55em;
  }

  .cam-box--defect .cam-box__label,
  .cam-box--defect.is-top .cam-box__label {
    top: auto;
    bottom: calc(100% + 0.45em);
    left: 0;
    right: auto;
  }

  .cam-box--defect.is-top .cam-box__label {
    top: calc(100% + 0.45em);
    bottom: auto;
  }

  .cam-box--defect.is-right .cam-box__label,
  .cam-box--defect.is-top.is-right .cam-box__label {
    left: auto;
    right: 0;
  }
}

/* Belt state over the clip, drawn under the picture inside the frame. */
.cam__strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px 4px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
}

.cam__strip-bar {
  position: relative;
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.12);
}

.cam__strip-seg[data-state="empty"] {
  background-color: var(--color--red);
}

.cam__strip-seg[data-state="loaded"] {
  background-color: var(--color--green);
}

.cam__strip-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background-color: var(--white);
}

.cam__strip-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.cam__strip-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cam__strip-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--swatch);
}

.cam__play {
  position: absolute;
  right: 2.5%;
  bottom: 5%;
  display: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.is-manual .cam__play {
  display: inline-flex;
  align-items: center;
}

/* A bench camera sees a wide strip of worktop. */
.cam__screen--wide {
  aspect-ratio: 12 / 5;
}

/* Assembly steps under the picture, ticked off as the video plays. */
.cam-steps {
  margin-top: 8px;
  padding: 12px 14px 4px;
  border-radius: 8px;
  background-color: #1b1e1d;
  color: var(--white);
  font-family: var(--sans);
}

.cam-steps__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color--green);
}

.cam-steps__count {
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.cam-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cam-steps__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.45);
}

.cam-steps__list li[data-state="active"],
.cam-steps__list li[data-state="done"] {
  color: var(--white);
}

.cam-steps__n {
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.cam-steps__status {
  font-variant-numeric: tabular-nums;
}

.cam-steps__list li[data-state="active"] .cam-steps__status {
  color: rgba(255, 255, 255, 0.7);
}

.cam-steps__list li[data-state="done"] .cam-steps__status {
  color: var(--color--green);
}

.cam__caption {
  margin-top: 12px;
  font-family: var(--sans);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color--black-50);
}

.cam__caption a {
  color: inherit;
}

.cam__caption.ax-credits {
  margin-top: 28px;
}

.ax-dark .cam__caption {
  color: rgba(255, 255, 255, 0.65);
}

/* ------------------------------------------------------------------ *
 * Demo: describe what to look for, pick a clip, watch the agent
 * ------------------------------------------------------------------ */

.demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo__ask {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--sans);
}

.demo__ask-label,
.inspect .cam-pill--source,
.cam.inspect .demo__event {
  display: none;
}

.demo__ask-text {
  font-size: var(--text-styles--body-m);
  line-height: 1.4;
}

.demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo__chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: transparent;
  color: var(--color--black);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.demo__chip:hover {
  border-color: var(--color--black);
}

.demo__chip[aria-pressed="true"] {
  border-color: var(--color--black);
  background-color: var(--color--black);
  color: var(--white);
}

.demo__event {
  min-height: 20px;
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--color--black-80);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo__event.is-on {
  opacity: 1;
}

.cam .demo__event {
  margin-top: 12px;
}

.demo__event time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color--green-dark);
}

/* ------------------------------------------------------------------ *
 * Inspection station: photos of parts come through one at a time
 * ------------------------------------------------------------------ */

.cam__screen--photo {
  aspect-ratio: 3 / 2;
}

.inspect__belt {
  position: absolute;
  inset: 0;
}

.inspect__belt > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.3, 0.75, 0.25, 1);
}

.inspect__belt > img.is-entering {
  transform: translateX(100%);
  transition: none;
}

.inspect__belt > img.is-leaving {
  transform: translateX(-100%);
}

.inspect__scan {
  display: none;
}

.inspect__scan.is-on {
  animation: inspect-scan 0.75s ease-in-out;
}

@keyframes inspect-scan {
  0% {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.inspect__verdict {
  top: 4.5%;
  right: 2.5%;
  color: #1b1e1d;
  background-color: var(--color--green);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.inspect__verdict.is-on {
  opacity: 1;
  transform: none;
}

.inspect__verdict[data-verdict="reject"] {
  background-color: var(--color--red);
}

.cam-box--defect {
  --c: var(--color--red);
  --t: 3px;
  background-color: rgba(255, 128, 113, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 128, 113, 0.6);
}

.cam-box--defect .cam-box__label {
  background-color: var(--color--red);
  padding: 0.2em 0.42em;
  border-radius: 0.3em;
  font-size: 11px;
}

.inspect__tally {
  display: none;
}

.inspect__tally b {
  font-weight: 500;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* The last parts through, newest on the right; older ones drop off the left. */
.inspect__reel {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.inspect__reel li {
  position: relative;
  flex: none;
  width: 36px;
  height: 24px;
  overflow: hidden;
  border-radius: 3px;
  animation: inspect-reel 0.4s ease;
}

.inspect__reel li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--color--green);
}

.inspect__reel li[data-verdict="reject"]::after {
  background-color: var(--color--red);
}

.inspect__reel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes inspect-reel {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

/* Several stations at once, each a bare screen inside one frame. */
.inspect-wall {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
}

.inspect-wall__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .inspect-wall__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.inspect-wall .cam.inspect {
  opacity: 0.62;
  transition: opacity 0.45s ease;
}

.inspect-wall .cam.inspect.is-live {
  opacity: 1;
}

.inspect-wall .cam.inspect.is-live .cam__screen {
  box-shadow: inset 0 0 0 1px rgba(77, 255, 210, 0.9), 0 10px 28px rgba(12, 77, 77, 0.16);
}

.inspect-wall .cam.inspect.is-live .cam__screen::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(#4dffd2, #4dffd2) left top / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left top / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right top / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right top / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left bottom / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left bottom / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right bottom / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right bottom / 2px 16px no-repeat;
}

.inspect-wall .inspect__scan {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20%;
  z-index: 2;
  width: 22%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(77, 255, 210, 0.15) 35%, rgba(77, 255, 210, 0.85) 50%, rgba(77, 255, 210, 0.15) 65%, transparent);
}

.inspect-wall .inspect__scan.is-on {
  animation: wall-scan 0.7s ease-in-out;
}

@keyframes wall-scan {
  0% { left: -22%; opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

.inspect-wall .inspect__verdict.is-on {
  background-color: #4dffd2;
  color: #0c4d4d;
}

.inspect-wall .inspect__verdict[data-verdict="reject"].is-on {
  background-color: #ff8071;
  color: #1b1e1d;
}

.inspect-wall .cam__screen {
  border-radius: 6px;
}

.inspect-wall .cam__overlay {
  font-size: clamp(9px, 3.4cqw, 13px);
}

.inspect__name {
  left: 3%;
  bottom: 4%;
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
}

/* ------------------------------------------------------------------ *
 * Five agents
 * ------------------------------------------------------------------ */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 20px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.agent-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background-color: var(--color--green-dark);
  container-type: inline-size;
}

.agent-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.agent-card:hover .agent-card__media > img {
  transform: scale(1.03);
}

.agent-card__num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color--black-50);
  font-variant-numeric: tabular-nums;
}

.agent-card__name {
  margin: 0;
}

.agent-card__job {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color--black-80);
}

@media screen and (max-width: 1199px) {
  .agent-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 479px) {
  .agent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small overlays inside the agent card media. */
.mini-pill {
  position: absolute;
  left: 6%;
  bottom: 7%;
  max-width: 88%;
  padding: 0.45em 0.7em;
  border-radius: 0.45em;
  background-color: var(--color--green);
  color: #1b1e1d;
  font-family: var(--sans);
  font-size: clamp(10px, 5.2cqw, 13px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-pill--dark {
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
}

.mini-box {
  --c: var(--color--green);
  --l: 14px;
  --t: 2px;
  position: absolute;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}

.mini-pill--top {
  top: 7%;
  bottom: auto;
}

.mini-pill--reject {
  background-color: var(--color--red);
}

.mini-box--defect {
  --c: var(--color--red);
  --l: 10px;
}

/* Belt state over a clip, as a thin bar along the bottom of the card. */
.mini-strip {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 7%;
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
}

.mini-strip + .mini-pill {
  bottom: calc(7% + 14px);
}

/* ------------------------------------------------------------------ *
 * Product UI shown on the smart layer
 * ------------------------------------------------------------------
 * Brand guideline: UI sits on the smart layer or on dark green, with a 4px
 * outside stroke of light green at 20%.
 */

.ui-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 6%;
  border-radius: 12px;
  background-color: var(--color--green-dark);
  container-type: inline-size;
}

.ui-stage > .ui-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-panel {
  position: relative;
  width: min(100%, 460px);
  padding: 18px 20px 20px;
  border-radius: 12px;
  background-color: rgba(27, 30, 29, 0.94);
  color: var(--white);
  font-family: var(--sans);
  box-shadow: 0 0 0 4px rgba(77, 255, 210, 0.2), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.ui-panel__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color--green);
}

.ui-panel__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.ui-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.35;
}

.ui-rows .ui-n {
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.ui-ok {
  color: var(--color--green);
}

.ui-miss {
  color: var(--color--red);
}

.ui-alert {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: var(--color--green);
  color: #1b1e1d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

/* Small versions inside the agent cards. */
.agent-card__media .ui-panel {
  width: 86%;
  padding: 7% 8%;
  border-radius: 8px;
  font-size: clamp(9px, 4.6cqw, 12px);
}

.agent-card__media .ui-panel__kicker {
  margin-bottom: 0.4em;
  font-size: 1em;
}

.agent-card__media .ui-rows li {
  gap: 0.6em;
  padding: 0.45em 0;
  font-size: 1em;
}

.agent-card__media.ui-stage {
  aspect-ratio: 4 / 3;
  padding: 7%;
  border-radius: 12px;
}

.agent-card__media .ui-panel__title {
  margin: 0;
  font-size: 1.1em;
}

/* Root cause investigation, as in the decks. */
.rca {
  padding: 28px;
  border-radius: 12px;
  background-color: var(--color--green-dark);
  color: var(--white);
  font-family: var(--sans);
}

.rca__kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color--green);
}

.rca__title {
  margin: 8px 0 16px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.rca__events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rca__events li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.4;
}

.rca__events li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.rca__events time {
  font-weight: 500;
  color: var(--color--green);
  font-variant-numeric: tabular-nums;
}

.rca__label {
  margin: 20px 0 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.rca__value {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

/* Step times for one build against the median, as bars with a median tick. */
.rca__bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rca__bars li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.75);
}

.rca__bars li.is-flag {
  color: var(--white);
}

.rca__bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

.rca__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--v);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
}

.rca__bars li.is-flag .rca__bar i {
  background-color: var(--color--red);
}

.rca__bar b {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--m);
  width: 2px;
  background-color: var(--color--green);
}

.rca__time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rca__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.rca__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rca__legend span::before {
  content: "";
  width: var(--w, 8px);
  height: var(--h, 8px);
  border-radius: 2px;
  background-color: var(--swatch);
}

.rca .cam {
  margin-top: 10px;
}

.rca .cam__frame {
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 479px) {
  .rca {
    padding: 20px;
  }

  .rca__bars li {
    grid-template-columns: 96px minmax(0, 1fr) 36px;
    gap: 8px;
    font-size: 13px;
  }
}

/* Phone, for operator assistance. A taller stage gives it room. */
.ui-stage--phone {
  aspect-ratio: 4 / 3;
  padding: 4%;
}

.phone {
  position: relative;
  height: 100%;
  max-width: 60%;
  aspect-ratio: 9 / 18;
  padding: 9px;
  border-radius: 30px;
  background-color: #1b1e1d;
  box-shadow: 0 0 0 4px rgba(77, 255, 210, 0.2), 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: var(--sans);
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background-color: #0f1211;
  container-type: inline-size;
}

.phone__screen > img {
  display: block;
  width: 100%;
  height: 62%;
  object-fit: cover;
}

.phone__top {
  position: absolute;
  top: 5%;
  left: 7%;
  padding: 0.4em 0.7em;
  border-radius: 0.45em;
  background-color: rgba(27, 30, 29, 0.88);
  color: var(--white);
  font-size: clamp(9px, 5cqw, 12px);
  font-weight: 500;
}

.phone__card {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 5%;
  padding: 7%;
  border-radius: 14px;
  background-color: #262a29;
  color: var(--white);
  font-size: clamp(10px, 6cqw, 14px);
  line-height: 1.35;
}

.phone__card p {
  font-size: inherit;
}

@media screen and (max-width: 767px) {
  .ui-stage--phone {
    aspect-ratio: 3 / 4;
  }
}

.phone__step {
  margin: 0 0 0.4em;
  color: var(--color--green);
  font-weight: 500;
}

.phone__text {
  margin: 0;
}

.phone__ask {
  margin-top: 0.8em;
  padding: 0.6em 0.8em;
  border-radius: 0.7em;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

/* Phone footage fills the screen; the card comes in when its cue is reached. */
.phone__screen > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone__card[data-at] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.phone__card[data-at].is-on {
  opacity: 1;
  transform: none;
}

.phone .cam__play {
  top: 5%;
  right: 7%;
  bottom: auto;
}

/* Froth readout. */
.readout {
  margin: 0;
  padding: 0;
  list-style: none;
}

.readout li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.readout svg {
  display: block;
  width: 96px;
  height: 28px;
}

.readout .ui-trend {
  font-size: 13px;
  font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * Numbered cards: how it runs, the pilot
 * ------------------------------------------------------------------ */

.ax-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ax-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 24px;
  border-radius: 12px;
  background-color: var(--color--gray-2);
}

.ax-gray .ax-card {
  background-color: var(--white);
}

.ax-dark .ax-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: transparent;
}

.ax-card__num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color--green-dark);
  font-variant-numeric: tabular-nums;
}

.ax-dark .ax-card__num {
  color: var(--color--green);
}

.ax-card__title {
  margin: 0;
}

.ax-card__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color--black-80);
}

.ax-dark .ax-card__text {
  color: rgba(255, 255, 255, 0.75);
}

.ax-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color--black-5);
  font-family: var(--sans);
}

.ax-dark .ax-facts {
  border-color: rgba(255, 255, 255, 0.18);
}

.ax-facts dt {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color--black-50);
}

.ax-dark .ax-facts dt {
  color: rgba(255, 255, 255, 0.6);
}

.ax-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.ax-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color--black-5);
}

.ax-dark .ax-note {
  border-color: rgba(255, 255, 255, 0.18);
}

@media screen and (max-width: 767px) {
  .ax-cards,
  .ax-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .ax-card {
    min-height: 0;
  }
}

/* Perimeter zones. */
.ax-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ax-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 12px;
  background-color: var(--color--gray-2);
}

.ax-gray .ax-zone {
  background-color: var(--white);
}

.ax-zone__num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color--green-dark);
}

.ax-zone__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color--black-80);
}

@media screen and (max-width: 479px) {
  .ax-zones {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ *
 * FAQ
 * ------------------------------------------------------------------ */

.ax-faq details {
  border-top: 1px solid var(--color--black-5);
}

.ax-faq details:last-child {
  border-bottom: 1px solid var(--color--black-5);
}

.ax-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-family: var(--sans);
  font-size: var(--text-styles--header-s);
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.ax-faq summary::-webkit-details-marker {
  display: none;
}

.ax-faq summary::after {
  content: "";
  flex: none;
  align-self: center;
  width: 32px;
  height: 36px;
  background: url("../images/bracket-mark.svg?v=20261125b") center / contain no-repeat;
}

.ax-faq details[open] summary::after {
  transform: none;
}

.ax-faq details p {
  max-width: 640px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: var(--text-styles--body-m);
  line-height: 1.55;
  color: var(--color--black-80);
}

/* ------------------------------------------------------------------ *
 * Link to a related page
 * ------------------------------------------------------------------ */

.ax-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background-color: var(--color--gray-2);
  color: inherit;
  text-decoration: none;
}

.ax-related:hover {
  background-color: var(--color--gray-3);
}

.ax-related__text {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color--black-80);
}

/* ------------------------------------------------------------------ *
 * Solutions overview: the industries outside the main four
 * ------------------------------------------------------------------ */

.ax-also {
  margin-top: 96px;
}

.ax-also__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color--black-5);
  list-style: none;
}

.ax-also__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.ax-also__list a:hover .ax-also__name {
  text-decoration: underline;
}

.ax-also__name {
  font-family: var(--sans);
  font-size: var(--text-styles--header-xs);
  font-weight: 500;
  line-height: 1.25;
}

.ax-also__desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color--black-50);
}

@media screen and (max-width: 991px) {
  .ax-also {
    margin-top: 64px;
  }

  .ax-also__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 479px) {
  .ax-also__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ *
 * The five line demos: one dark instrument, mint corners
 * ------------------------------------------------------------------ */

.ax-media > .cam > .cam__frame,
.ax-media > .demo > .cam > .cam__frame {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background-color: #0c4d4d;
  box-shadow: 0 0 0 4px rgba(77, 255, 210, 0.18);
}

.ax-media .cam__screen::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(#4dffd2, #4dffd2) left top / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left top / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right top / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right top / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left bottom / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) left bottom / 2px 16px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right bottom / 16px 2px no-repeat,
    linear-gradient(#4dffd2, #4dffd2) right bottom / 2px 16px no-repeat;
}

.ax-media .cam__screen {
  border-radius: 10px;
}

.demo .demo__ask-label {
  display: block;
  margin: 0 0 6px;
  color: #0c4d4d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo__ask-text {
  color: rgba(27, 30, 29, 0.8);
  font-size: 15px;
  line-height: 1.5;
}

.demo .demo__chip {
  border-radius: 999px;
  border-color: rgba(12, 77, 77, 0.28);
}

.demo .demo__chip:hover {
  border-color: #0c4d4d;
}

.demo .demo__chip[aria-pressed="true"] {
  border-color: #0c4d4d;
  background-color: #0c4d4d;
  color: #4dffd2;
}

.ax-media > .cam > .cam__frame .cam-steps {
  margin-top: 10px;
  padding: 2px 4px 0;
  border-radius: 0;
  background-color: transparent;
}

.cam-steps__list li[data-state="active"] {
  padding-left: 12px;
  box-shadow: inset 2px 0 0 #4dffd2;
}

.ax-media .cam__strip {
  padding: 12px 4px 2px;
  color: rgba(255, 255, 255, 0.72);
}

.rca {
  box-shadow: 0 0 0 4px rgba(77, 255, 210, 0.18);
}

.phone__card {
  box-shadow: 0 0 0 1px rgba(77, 255, 210, 0.4);
}

.ui-stage--phone {
  box-shadow: 0 0 0 4px rgba(77, 255, 210, 0.18);
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .cam-pill--alert,
  .cam-box,
  .phone__card[data-at],
  .demo__event,
  .agent-card__media > img,
  .ax-faq summary::after,
  .inspect__belt > img,
  .inspect__verdict {
    transition: none !important;
  }

  .inspect__scan,
  .inspect__reel li {
    animation: none !important;
  }
}
