Skip to content

The Open Standard for Generative UI

7.2 KB
Raw Blame
.section {
  width: 100%;
  padding-block: 160px;
  background: linear-gradient(to bottom, var(--openui-background), var(--openui-foreground));
}

.inner {
  display: flex;
  align-items: stretch;
  gap: 72px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-width: 0;
  text-align: left;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.title {
  max-width: 460px;
  margin: 0;
  color: var(--openui-text-neutral-primary);
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-title-size);
  font-weight: var(--home-title-weight);
  line-height: var(--home-title-leading);
  letter-spacing: var(--home-title-tracking);
}

.title[data-size="medium"] {
  font-size: var(--home-title-medium-size);
}

.description {
  max-width: 460px;
  margin: 0;
  color: var(--openui-text-neutral-secondary);
  font-family: var(--home-font-text);
  font-size: var(--home-body-size);
  font-weight: var(--home-body-weight);
  line-height: var(--home-body-leading);
  text-wrap: pretty;
}

.stepper {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 84px;
}

.step:last-child {
  min-height: 0;
}

.step:last-child .stepContent {
  padding-bottom: 0;
}

.step:not(:last-child)::after {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 1px;
  background: var(--openui-border-interactive);
  content: "";
}

.stepMarker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--openui-border-interactive);
  border-radius: 50%;
  background: var(--openui-foreground);
  color: var(--openui-text-neutral-secondary);
  font-family: "Inter Display", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.stepContent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 24px;
}

.stepTitle,
.stepLink {
  color: var(--openui-text-neutral-primary);
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-lead-size);
  font-weight: 500;
  line-height: 1.35;
}

.stepLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  text-decoration: none;
}

.stepLink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stepLink:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--openui-border-accent-emphasis);
  outline-offset: 3px;
}

.stepDescription {
  max-width: 360px;
  margin: 0;
  color: var(--openui-text-neutral-secondary);
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-body-size);
  font-weight: var(--home-body-weight);
  line-height: var(--home-body-leading);
}

.integrationAction {
  margin-top: 24px;
}

.codeColumn {
  display: flex;
  box-sizing: border-box;
  flex: 0 0 640px;
  width: 640px;
  max-width: 100%;
}

.codeColumn > * {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.customers {
  width: 100%;
  max-width: 1248px;
  margin: 240px auto 0;
}

.customersTitle {
  margin: 0;
  color: var(--openui-text-neutral-primary);
  font-family: "Inter Display", sans-serif;
  font-size: var(--home-title-size);
  font-weight: var(--home-title-weight);
  line-height: var(--home-title-leading);
  letter-spacing: var(--home-title-tracking);
  text-align: center;
  text-wrap: balance;
}

.customersTitleSecondary {
  color: var(--openui-text-neutral-secondary);
}

.cloudTag {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  padding: 2px 7px 3px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.85em;
  line-height: 1;
  vertical-align: 0.06em;
}

.customerGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.customerCard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  padding: 24px;
  border-radius: 24px;
}

.customerBackground {
  z-index: 0;
  object-fit: cover;
}

.customerOverlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 5%) 30%, rgb(0 0 0 / 72%) 100%);
}

.customerLogo,
.customerFooter {
  position: relative;
  z-index: 2;
}

.customerLogo {
  max-width: 58%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.customerDescription {
  margin: 0;
  color: #fff;
  font-family: "Inter Display", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.customerFooter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.customerStory :global(.openui-button-base-tertiary) {
  color: #fff !important;
}

.customerStory :global(.openui-button-base-tertiary:hover) {
  color: rgb(255 255 255 / 72%) !important;
}

/* Matches the inset ComparisonSection applies at the same breakpoint, so the
   content stops touching the viewport edges below the 1200px design width. */
@media (max-width: 1279px) {
  .inner,
  .customers {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1023px) {
  .section {
    padding-block: 96px;
  }

  .inner {
    flex-direction: column;
    gap: 48px;
  }

  .content,
  .codeColumn {
    flex: 0 0 auto;
    width: 100%;
  }

  .content {
    /* A host can flatten the copy column once the two desktop columns stack,
       allowing the code panel to sit between the intro and the steps. */
    display: var(--cloud-setup-content-display, flex);
    gap: 32px;
  }

  .intro {
    order: 1;
  }

  .codeColumn {
    order: 2;
  }

  .stepper {
    order: 3;
  }

  .integrationAction {
    order: 4;
  }

  .customers {
    width: calc(100% - 48px);
    margin-top: 120px;
  }

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

@media (max-width: 767px) {
  .inner {
    width: calc(100% - 32px);
  }

  .stepper[data-interactive="true"][data-step-count="2"] {
    height: 248px;
  }

  .stepper[data-interactive="true"][data-step-count="3"] {
    height: 312px;
  }

  .title {
    font-size: 28px;
  }

  .customers {
    width: calc(100% - 32px);
  }

  .customersTitle {
    font-size: 28px;
  }

  .customerGrid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    width: calc(100% + 32px);
    margin-top: 48px;
    margin-left: -16px;
    box-sizing: border-box;
    padding: 0 16px 8px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .customerGrid::-webkit-scrollbar {
    display: none;
  }

  .customerCard {
    flex: 0 0 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .customerDescription {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stepper[data-interactive="true"] .step[data-active="true"]:not(:last-child)::after,
  .stepper[data-interactive="true"] .stepDescription {
    animation: none;
  }
}