/* Product tour: the hero's four chips are tabs; each shows a page of the Xee dashboard in a framed window with a caption bar. */

/* Tabs are buttons now */
.hero-chip {
  font-family: inherit;
  cursor: pointer;
}
.hero-chip:focus-visible {
  outline: 2px solid #171717;
  outline-offset: 2px;
}

.site-frame section.xt {
  --p: 1; /* the dashboard mockups are shown in their finished state */
  margin: 0;
  padding: 1.5rem 24px clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, #f8f8f8 0%, #f6f6f7 55%, #ffffff 100%);
  border-bottom: 1px solid #ececea;
}
.xt-frame {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  padding: 0.75rem;
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(0 0 0 / 0.07);
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 40px 90px -50px rgb(0 0 0 / 0.3);
}
.xt-panels {
  position: relative;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
.xt-panel .xw {
  height: clamp(24rem, 46vw, 33rem);
  border-radius: 0.875rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.xt-panel:not([hidden]) {
  animation: xt-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes xt-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* The caption bar over the bottom of the window */
.xt-caption {
  position: absolute;
  right: clamp(1rem, 6vw, 3.5rem);
  bottom: 1rem;
  left: clamp(1rem, 6vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 0.875rem;
  background: #262626;
  border-radius: 0.875rem;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.5);
  color: #ffffff;
}
.xt-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--icon);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}
.xt-tile svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xt-caption > div {
  flex: 1;
  min-width: 0;
}
.xt-title {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.xt-text {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #a3a3a3;
}
.xt-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  background: #ffffff;
  color: #171717;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.xt-more:hover {
  background: #f1f1f1;
}
.xt-more:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-frame section.xt {
    padding-inline: 12px;
  }
  .xt-frame {
    padding: 0.5rem;
    border-radius: 1.125rem;
  }
  .xt-caption {
    position: static;
    margin-top: 0.75rem;
    flex-wrap: wrap;
  }
  .xt-panels {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .xt-more {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xt-panel:not([hidden]) {
    animation: none;
  }
}
