The Open Standard for Generative UI
.section {
width: 100%;
padding-top: 3.5rem;
padding-inline: 1.25rem;
}
.container {
max-width: 75rem;
margin-inline: auto;
list-style: none;
margin-block: 0;
padding: 0;
display: grid;
grid-template-columns: 1fr;
}
.step {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.875rem;
padding-block: 1.5rem;
border-bottom: 1px solid var(--home-hairline);
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.625rem;
height: 1.625rem;
border: 1px solid var(--openui-border-default);
border-radius: 0.4rem;
background: var(--openui-foreground);
box-shadow: var(--home-shadow-card);
font-family: var(--font-geist-mono), monospace;
font-size: 0.75rem;
color: var(--openui-text-neutral-secondary);
}
.stepTitle {
margin: 0;
font-family: var(--home-font-display);
font-size: var(--home-heading-size);
font-weight: var(--home-heading-weight);
line-height: var(--home-heading-leading);
letter-spacing: var(--home-heading-tracking);
color: var(--openui-text-neutral-primary);
}
.stepDescription {
margin: 0;
font-size: var(--home-body-size);
line-height: var(--home-body-leading);
color: var(--openui-text-neutral-secondary);
}
/* Mobile-only expand affordance; hidden on desktop. */
.chevron {
display: none;
}
.code {
font-family: var(--font-geist-mono), monospace;
font-size: 0.85em;
padding: 0.1em 0.4em;
border-radius: 0.35em;
border: 1px solid var(--openui-border-default);
background: var(--openui-highlight);
color: var(--openui-text-neutral-primary);
white-space: nowrap;
}
@media (min-width: 768px) {
.section {
padding-inline: 2rem;
}
}
/* Four-across stepper only on true desktop; phones and tablets stay stacked. */
@media (min-width: 1024px) {
.container {
grid-template-columns: repeat(4, 1fr);
}
.step {
position: relative;
padding-block: 0;
padding-inline: 1.75rem;
border-bottom: none;
}
/* Vertically centered divider between columns, faded at both ends */
.step::before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 1px;
height: 9.5rem;
background: linear-gradient(
to bottom,
transparent,
var(--home-hairline) 22%,
var(--home-hairline) 78%,
transparent
);
}
.step:first-child {
padding-left: 0;
}
.step:first-child::before {
display: none;
}
}
/* Mobile-only: compact rows. Number badge + title share a line, the
description aligns under the title, and the forced title breaks are dropped. */
@media (max-width: 767px) {
.section {
padding-top: 2rem;
}
.step {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto;
column-gap: 0.75rem;
row-gap: 0;
align-items: center;
padding-block: 1.25rem;
border-bottom: none;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
/* Separator runs edge to edge and fades out on the left. */
.step:not(:first-child)::before {
content: "";
position: absolute;
top: 0;
inset-inline: -1.25rem;
height: 1px;
background: linear-gradient(to right, transparent, var(--home-hairline) 15%);
}
/* Smaller number tile. */
.badge {
grid-column: 1;
grid-row: 1;
width: 1.375rem;
height: 1.375rem;
font-size: 0.6875rem;
}
.stepTitle {
grid-column: 2;
grid-row: 1;
text-wrap: balance;
}
.chevron {
grid-column: 3;
grid-row: 1;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--openui-text-neutral-tertiary);
transition: transform 0.2s ease;
}
.step[data-open] .chevron {
transform: rotate(180deg);
}
/* Collapsed by default; tap a step to fluidly reveal its description. The
grid-template-rows 0fr->1fr trick animates to the content's natural height. */
.stepDescription {
grid-column: 2;
grid-row: 2;
display: grid;
grid-template-rows: 0fr;
text-wrap: pretty;
transition: grid-template-rows 0.32s ease;
}
.stepDescriptionInner {
overflow: hidden;
min-height: 0;
}
.step[data-open] .stepDescription {
grid-template-rows: 1fr;
}
/* Gap only when open, so the collapsed 0fr row closes fully (no residual). */
.step[data-open] .stepDescriptionInner {
padding-top: 0.375rem;
}
@media (prefers-reduced-motion: reduce) {
.stepDescription {
transition: none;
}
}
.titleBreak {
display: none;
}
}