.demo-page {
  --demo-page-background: #f4f0e7;
  --demo-page-surface: #fffdf8;
  --demo-page-surface-strong: #ffffff;
  --demo-page-text: #071a3d;
  --demo-page-muted: #47536b;
  --demo-page-accent: #075fe4;
  --demo-page-accent-strong: #0046b5;
  --demo-page-border: #aeb8c9;
  --demo-page-code-background: #081a38;
  --demo-page-code-color: #f8fbff;
  --demo-page-focus: #075fe4;
  --demo-page-radius: 1.25rem;
  --demo-page-space: clamp(1rem, 3vw, 2rem);

  --_background: var(--demo-page-background);
  --_surface: var(--demo-page-surface);
  --_surface-strong: var(--demo-page-surface-strong);
  --_text: var(--demo-page-text);
  --_muted: var(--demo-page-muted);
  --_accent: var(--demo-page-accent);
  --_accent-strong: var(--demo-page-accent-strong);
  --_border: var(--demo-page-border);
  --_focus: var(--demo-page-focus);
  --_radius: var(--demo-page-radius);
  --_space: var(--demo-page-space);

  min-block-size: 100vh;
  margin: 0;
  color: var(--_text);
  background:
    linear-gradient(90deg, rgb(7 95 228 / 0.05) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    linear-gradient(rgb(7 95 228 / 0.05) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    var(--_background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.demo-page *,
.demo-page *::before,
.demo-page *::after {
  box-sizing: border-box;
}

.demo-page :where(h1, h2, h3, p, ul, ol, dl) {
  margin-block-start: 0;
}

.demo-page :where(h1, h2, h3) {
  color: var(--_text);
  line-height: 1.08;
  text-wrap: balance;
}

.demo-page :where(a, button) {
  font: inherit;
}

.demo-page :where(a):focus-visible,
.demo-page :where(button):focus-visible,
.demo-table-wrap:focus-visible {
  outline: 3px solid var(--_focus);
  outline-offset: 0.25rem;
}

.demo-page code,
.demo-page kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.demo-page :not(pre) > code,
.demo-page kbd {
  padding: 0.1em 0.35em;
  border: 1px solid rgb(7 26 61 / 0.16);
  border-radius: 0.3rem;
  background: rgb(255 255 255 / 0.72);
  overflow-wrap: anywhere;
}

.demo-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: var(--_accent-strong);
  border-radius: 0.5rem;
  font-weight: 750;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-header,
.demo-page__main,
.demo-footer {
  inline-size: min(76rem, calc(100% - 2rem));
  margin-inline: auto;
}

.demo-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-block-end: 1px solid rgb(7 26 61 / 0.22);
}

.demo-header__brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--_text);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.demo-header__mark {
  display: grid;
  place-items: center;
  min-inline-size: 2.9rem;
  min-block-size: 2.35rem;
  padding-inline: 0.4rem;
  color: #ffffff;
  background: var(--_accent);
  border-radius: 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.demo-header__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-header__links a {
  color: var(--_text);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.3em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.demo-header__links a:hover {
  color: var(--_accent-strong);
  text-decoration-color: currentColor;
}

.demo-header__links a[aria-current] {
  color: var(--_accent-strong);
  text-decoration-color: currentColor;
}

.demo-page__main {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.demo-eyebrow {
  margin-block-end: 0.7rem;
  color: var(--_accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(23rem, 0.92fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.demo-hero__title {
  max-inline-size: 12ch;
  margin-block-end: 1.25rem;
  font-size: clamp(2.6rem, 7.6vw, 6.3rem);
  font-weight: 850;
}

.demo-hero__description {
  max-inline-size: 62ch;
  margin-block-end: 1.6rem;
  color: var(--_muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.demo-hero__actions,
.demo-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.demo-button {
  display: inline-flex;
  min-block-size: 2.8rem;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--_text);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.demo-button:hover {
  transform: translateY(-2px);
}

.demo-button:active {
  transform: translateY(0);
}

.demo-button--primary {
  color: #ffffff;
  background: var(--_accent);
  border-color: var(--_accent);
}

.demo-button--primary:hover {
  background: var(--_accent-strong);
  border-color: var(--_accent-strong);
}

.demo-button--secondary {
  color: var(--_text);
  background: transparent;
}

.demo-button--secondary:hover {
  color: #ffffff;
  background: var(--_text);
}

.demo-button--light {
  color: var(--_text);
  background: #ffffff;
  border-color: #ffffff;
}

.demo-button--light:hover {
  color: #ffffff;
  background: transparent;
}

.demo-hero__visual {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  background: var(--_surface);
  border: 2px dashed var(--_accent);
  border-radius: calc(var(--_radius) + 0.4rem);
  box-shadow: 1rem 1rem 0 var(--_text);
  animation: demo-panel-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.demo-hero__visual::before,
.demo-hero__visual::after {
  position: absolute;
  content: "";
  background: var(--_accent);
}

.demo-hero__visual::before {
  inline-size: 2.2rem;
  block-size: 2.2rem;
  inset-block-start: -1rem;
  inset-inline-end: -0.8rem;
}

.demo-hero__visual::after {
  inline-size: 0.7rem;
  block-size: 0.7rem;
  inset-block-end: -0.45rem;
  inset-inline-start: 44%;
  border-radius: 50%;
}

.demo-hero__visual-note {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-hero__visual-note {
  margin-block-start: 0.8rem;
  color: var(--_muted);
  text-align: end;
}

.demo-hero__otp {
  --a11y-otp-slot-size: auto;
  --a11y-otp-slot-gap: clamp(0.25rem, 1vw, 0.55rem);
  --a11y-otp-border-color: var(--_text);
  --a11y-otp-focus-color: var(--_accent);
  --a11y-otp-slot-background: var(--_surface-strong);
  --a11y-otp-slot-filled-background: rgb(19 101 231 / 0.12);
  --a11y-otp-radius: 0.65rem;
  --a11y-otp-font-size: clamp(1rem, 3vw, 1.6rem);

  inline-size: 100%;
  gap: 0.45rem;
}

.demo-hero__otp .a11y-otp__label {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-hero__otp .a11y-otp__hint {
  color: var(--_muted);
  font-size: 0.92rem;
}

.demo-hero__otp .a11y-otp__slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.25rem, 1vw, 0.55rem);
  margin-block: 1rem;
}

.demo-hero__otp .a11y-otp__slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  inline-size: auto;
  min-inline-size: 0;
  block-size: auto;
  min-block-size: 44px;
  font-weight: 850;
}

.demo-facts {
  margin-block-start: clamp(3rem, 8vw, 6rem);
  border-block: 1px solid rgb(7 26 61 / 0.3);
}

.demo-facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.demo-facts__item {
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem);
  border-inline-end: 1px solid rgb(7 26 61 / 0.25);
}

.demo-facts__item:last-child {
  border-inline-end: 0;
}

.demo-facts__item dt {
  color: var(--_muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-facts__item dd {
  margin: 0.15rem 0 0;
  font-weight: 800;
}

.demo-section {
  padding-block: clamp(4rem, 10vw, 8rem);
  scroll-margin-block-start: 1rem;
}

.demo-section + .demo-section {
  border-block-start: 1px solid rgb(7 26 61 / 0.2);
}

.demo-section__intro {
  max-inline-size: 48rem;
  margin-block-end: clamp(1.5rem, 4vw, 3rem);
}

.demo-section__intro h2,
.demo-callout h2 {
  max-inline-size: 18ch;
  margin-block-end: 1rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 830;
  letter-spacing: -0.045em;
}

.demo-section__intro p:last-child,
.demo-callout p:last-child {
  max-inline-size: 64ch;
  margin-block-end: 0;
  color: var(--_muted);
  font-size: 1.05rem;
}

.demo-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: 1px;
  overflow: hidden;
  background: var(--_border);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  box-shadow: 0.75rem 0.75rem 0 rgb(7 26 61 / 0.1);
}

.demo-preview__form,
.demo-preview__aside {
  padding: clamp(1rem, 4vw, 2.5rem);
  background: var(--_surface-strong);
}

.demo-preview__form {
  display: grid;
  gap: 1.2rem;
}

.demo-preview__form .a11y-otp {
  --a11y-otp-slot-size: clamp(2.75rem, 6vw, 3.25rem);
  --a11y-otp-slot-gap: clamp(0.25rem, 1vw, 0.5rem);
  --a11y-otp-border-color: #516078;
  --a11y-otp-focus-color: var(--_accent);
  --a11y-otp-slot-filled-background: rgb(7 95 228 / 0.1);
}

.demo-preview__note {
  min-block-size: 1.6em;
  margin-block-end: 0;
  color: var(--_muted);
  font-size: 0.9rem;
}

.demo-preview__aside {
  background: #e5edfb;
}

.demo-preview__aside h3 {
  margin-block-end: 1rem;
  font-size: 1.25rem;
}

.demo-check-list,
.demo-limitations,
.demo-token-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin-block-end: 0;
  list-style: none;
}

.demo-check-list li,
.demo-limitations li {
  position: relative;
  padding-inline-start: 1.5rem;
}

.demo-check-list li::before,
.demo-limitations li::before {
  position: absolute;
  inset-block-start: 0.65em;
  inset-inline-start: 0;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  background: var(--_accent);
  content: "";
}

.demo-feature-grid,
.demo-code-grid,
.demo-split-grid,
.demo-api-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-feature-card,
.demo-code-card,
.demo-info-card,
.demo-api-summary article {
  padding: clamp(1rem, 3vw, 1.7rem);
  background: var(--_surface);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
}

.demo-feature-card {
  position: relative;
  min-block-size: 14rem;
  overflow: hidden;
}

.demo-feature-card h3,
.demo-code-card h3,
.demo-info-card h3,
.demo-api-summary h3 {
  margin-block-end: 0.7rem;
  font-size: 1.35rem;
}

.demo-feature-card p:last-child,
.demo-code-card p:last-of-type,
.demo-info-card p:last-child,
.demo-api-summary p {
  margin-block-end: 0;
  color: var(--_muted);
}

.demo-feature-card__number {
  position: absolute;
  inset-block-end: -0.35em;
  inset-inline-end: 0.15em;
  margin: 0;
  color: rgb(7 95 228 / 0.11);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}

.demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-card {
  display: grid;
  min-block-size: 13rem;
  padding: 1.25rem;
  color: var(--_text);
  background: var(--_surface);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.demo-card:hover,
.demo-card:focus-visible {
  color: #ffffff;
  background: var(--_accent-strong);
  border-color: var(--_accent-strong);
  box-shadow: 0.45rem 0.45rem 0 var(--_text);
  transform: translateY(-2px);
}

.demo-card__number {
  color: var(--_accent-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.demo-card:hover .demo-card__number,
.demo-card:focus-visible .demo-card__number {
  color: #dbe8ff;
}

.demo-card__title {
  align-self: end;
  margin-block-start: auto;
  font-size: 1.3rem;
  font-weight: 850;
  line-height: 1.15;
}

.demo-card__description {
  margin-block-start: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.demo-card__action {
  display: inline-flex;
  gap: 0.35rem;
  margin-block-start: 1rem;
  align-items: center;
  color: var(--_accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-card:hover .demo-card__action,
.demo-card:focus-visible .demo-card__action {
  color: #dbe8ff;
}

.demo-card__action [aria-hidden="true"] {
  font-size: 1.1em;
  transition: transform 150ms ease;
}

.demo-card:hover .demo-card__action [aria-hidden="true"],
.demo-card:focus-visible .demo-card__action [aria-hidden="true"] {
  transform: translateX(0.2rem);
}

.demo-code-card {
  min-inline-size: 0;
}

.demo-code-card--wide {
  margin-block-start: 1rem;
}

.demo-code-card pre {
  max-inline-size: 100%;
  padding: 1rem;
  margin: 1rem 0 0;
  overflow-x: auto;
  color: var(--demo-page-code-color);
  background: var(--demo-page-code-background);
  border-radius: 0.75rem;
  line-height: 1.55;
  tab-size: 2;
}

.demo-code-card pre:focus-visible {
  outline: 3px solid var(--_focus);
  outline-offset: 0.2rem;
}

.demo-table-wrap {
  max-inline-size: 100%;
  margin-block-end: 1rem;
  overflow-x: auto;
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
}

.demo-table {
  inline-size: 100%;
  min-inline-size: 42rem;
  border-collapse: collapse;
  background: var(--_surface);
}

.demo-table th,
.demo-table td {
  padding: 0.9rem 1rem;
  border-block-end: 1px solid var(--_border);
  text-align: start;
  vertical-align: top;
}

.demo-table th {
  color: #ffffff;
  background: var(--_text);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-table tr:last-child td {
  border-block-end: 0;
}

.demo-key-list {
  display: grid;
  gap: 0.8rem;
  margin-block-end: 0;
}

.demo-key-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block-end: 0.8rem;
  border-block-end: 1px solid var(--_border);
}

.demo-key-list div:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}

.demo-key-list dt {
  font-weight: 800;
}

.demo-key-list dd {
  margin: 0;
  color: var(--_muted);
}

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

.demo-token-list li {
  min-inline-size: 0;
}

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

.demo-limitations li {
  padding: 1.1rem 1.1rem 1.1rem 2.7rem;
  background: var(--_surface);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
}

.demo-limitations li::before {
  inset-block-start: 1.55rem;
  inset-inline-start: 1.2rem;
}

.demo-callout {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: #ffffff;
  background: var(--_text);
  border-radius: var(--_radius);
}

.demo-callout h2,
.demo-callout .demo-eyebrow {
  color: #ffffff;
}

.demo-callout p:last-child {
  color: #dbe4f5;
}

/* Example detail pages */

.demo-page--example .demo-page__main {
  max-inline-size: 76rem;
  padding-block-start: clamp(1.5rem, 4vw, 3rem);
}

.demo-breadcrumb {
  margin-block-end: clamp(2.5rem, 6vw, 5rem);
}

.demo-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 0;
  margin: 0;
  color: var(--_muted);
  font-size: 0.9rem;
  list-style: none;
}

.demo-breadcrumb__item {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
}

.demo-breadcrumb__separator {
  inline-size: 0.5rem;
  block-size: 0.75rem;
  flex: none;
  fill: none;
  stroke: var(--_accent-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.demo-breadcrumb a {
  color: var(--_text);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.demo-example__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.65fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
  padding-block-end: clamp(2.5rem, 7vw, 5rem);
  border-block-end: 1px solid rgb(7 26 61 / 0.24);
}

.demo-example__title {
  max-inline-size: 14ch;
  margin-block-end: 1rem;
  font-size: clamp(2.55rem, 7vw, 5.7rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.demo-example__description {
  max-inline-size: 62ch;
  margin-block-end: 0;
  color: var(--_muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.demo-example__summary {
  padding: 1.25rem;
  background: var(--_text);
  border-radius: var(--_radius);
  color: #ffffff;
  box-shadow: 0.65rem 0.65rem 0 rgb(7 95 228 / 0.2);
}

.demo-example__summary p {
  margin-block-end: 0.8rem;
  color: #dbe4f5;
  font-size: 0.92rem;
}

.demo-example__summary code {
  color: #ffffff;
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.35);
}

.demo-example__summary-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-example__summary-list li {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
}

.demo-example__summary-list li::before {
  inline-size: 0.55rem;
  block-size: 0.55rem;
  background: #78aaff;
  content: "";
}

.demo-example__section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  scroll-margin-block-start: 1rem;
}

.demo-example__section + .demo-example__section {
  border-block-start: 1px solid rgb(7 26 61 / 0.2);
}

.demo-example__intro {
  max-inline-size: 50rem;
  margin-block-end: clamp(1.5rem, 4vw, 2.5rem);
}

.demo-example__intro h2 {
  margin-block-end: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 830;
  letter-spacing: -0.045em;
}

.demo-example__intro p:last-child {
  margin-block-end: 0;
  color: var(--_muted);
  font-size: 1.05rem;
}

.demo-example__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.38fr);
  gap: 1px;
  overflow: hidden;
  background: var(--_border);
  border: 1px solid var(--_border);
  border-radius: var(--_radius);
  box-shadow: 0.75rem 0.75rem 0 rgb(7 26 61 / 0.1);
}

.demo-example__stage--states {
  grid-template-columns: 1fr;
}

.demo-example__stage--states .demo-example__state-grid {
  grid-template-columns: 1fr;
}

.demo-example__canvas,
.demo-example__note {
  padding: clamp(1.15rem, 4vw, 2.5rem);
  background: var(--_surface-strong);
}

.demo-example__canvas {
  display: grid;
  gap: 1.35rem;
  align-content: center;
  min-block-size: 20rem;
}

.demo-example__canvas > :last-child,
.demo-example__canvas form > :last-child,
.demo-example__note > :last-child {
  margin-block-end: 0;
}

.demo-example__canvas form {
  display: grid;
  gap: 1.4rem;
}

.demo-example__canvas form > button,
.demo-example__canvas > button {
  justify-self: start;
}

.demo-example__canvas .a11y-otp {
  --a11y-otp-slot-size: clamp(2.7rem, 7vw, 3.4rem);
  --a11y-otp-slot-gap: clamp(0.25rem, 1vw, 0.5rem);
  --a11y-otp-border-color: #516078;
  --a11y-otp-focus-color: var(--_accent);
  --a11y-otp-slot-filled-background: rgb(7 95 228 / 0.1);
}

.demo-example__canvas :where(form > button, .a11y-otp__actions button) {
  min-block-size: 2.75rem;
  padding: 0.6rem 1rem;
  color: #ffffff;
  background: var(--_accent);
  border: 1px solid var(--_accent);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.demo-example__canvas :where(form > button, .a11y-otp__actions button):hover {
  background: var(--_accent-strong);
  border-color: var(--_accent-strong);
}

.demo-example__canvas :where(form > button, .a11y-otp__actions button):disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.demo-example__note {
  background: #e5edfb;
}

.demo-example__note h3 {
  margin-block-end: 0.8rem;
  font-size: 1.2rem;
}

.demo-example__note p,
.demo-example__note li {
  color: var(--_muted);
  font-size: 0.94rem;
}

.demo-example__note ul {
  display: grid;
  gap: 0.55rem;
  padding-inline-start: 1.2rem;
  margin-block-end: 0;
}

.demo-example__state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-example__state-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--_surface-strong);
  border: 1px solid var(--_border);
  border-radius: calc(var(--_radius) - 0.25rem);
}

.demo-example__state-card h3 {
  margin-block-end: 1.25rem;
}

.demo-example__setup {
  margin-block-end: 1rem;
}

.demo-example__setup .demo-code-card {
  background: #e5edfb;
}

.demo-example__tip {
  padding: 1rem 1.15rem;
  margin-block: 1rem 0;
  color: var(--_text);
  background: #fff4c2;
  border-inline-start: 0.35rem solid #c77800;
  border-radius: 0.25rem var(--_radius) var(--_radius) 0.25rem;
}

.demo-example__pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  padding-block-start: clamp(2rem, 6vw, 4rem);
  border-block-start: 1px solid rgb(7 26 61 / 0.2);
}

.demo-example__pager a {
  display: grid;
  min-block-size: 5.5rem;
  padding: 1rem;
  align-content: center;
  color: var(--_text);
  background: var(--_surface);
  border: 1px solid var(--_border);
  border-radius: calc(var(--_radius) - 0.3rem);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.demo-example__pager a:hover {
  color: #ffffff;
  background: var(--_accent-strong);
  border-color: var(--_accent-strong);
}

.demo-example__pager a:first-child {
  text-align: start;
}

.demo-example__pager a:last-child {
  text-align: end;
}

.demo-example__pager-label {
  display: block;
  color: var(--_muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-example__pager a:hover .demo-example__pager-label {
  color: #dbe8ff;
}

.demo-footer {
  --demo-footer-background: #071a3d;
  --demo-footer-color: #f8fbff;
  --demo-footer-muted-color: #c7d2e7;
  --demo-footer-link-color: #ffffff;
  --demo-footer-border-color: rgb(255 255 255 / 0.2);
  --demo-footer-focus-color: #ffe37e;
  --demo-footer-radius: 1.25rem 1.25rem 0 0;
  --demo-footer-space: clamp(1.2rem, 4vw, 2.25rem);

  --_footer-background: var(--demo-footer-background);
  --_footer-color: var(--demo-footer-color);
  --_footer-muted-color: var(--demo-footer-muted-color);
  --_footer-link-color: var(--demo-footer-link-color);
  --_footer-border-color: var(--demo-footer-border-color);
  --_footer-focus-color: var(--demo-footer-focus-color);
  --_footer-radius: var(--demo-footer-radius);
  --_footer-space: var(--demo-footer-space);

  margin-block-start: clamp(3rem, 8vw, 6rem);
  padding: var(--_footer-space);
  color: var(--_footer-color);
  background: var(--_footer-background);
  border: 1px solid var(--_footer-border-color);
  border-radius: var(--_footer-radius);
}

.demo-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.demo-footer__brand {
  display: grid;
  gap: 0.35rem;
}

.demo-footer__eyebrow,
.demo-footer__credit,
.demo-footer__meta {
  margin: 0;
}

.demo-footer__eyebrow,
.demo-footer__meta {
  color: var(--_footer-muted-color);
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-footer__credit {
  color: var(--_footer-color);
  font-size: 1rem;
  line-height: 1.5;
}

.demo-footer__plugin {
  font-weight: 800;
}

.demo-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-footer__link {
  color: var(--_footer-link-color);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.demo-footer__link:hover {
  text-decoration-thickness: 0.15em;
}

.demo-footer__link:focus-visible {
  outline: 3px solid var(--_footer-focus-color);
  outline-offset: 0.25rem;
  border-radius: 0.25rem;
}

.demo-footer__separator {
  margin-inline: 0.35rem;
}

@keyframes demo-panel-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 62rem) {
  .demo-hero,
  .demo-preview,
  .demo-example__hero,
  .demo-example__stage {
    grid-template-columns: 1fr;
  }

  .demo-hero__visual {
    max-inline-size: 40rem;
  }

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

@media (max-width: 46rem) {
  .demo-facts__list,
  .demo-feature-grid,
  .demo-code-grid,
  .demo-split-grid,
  .demo-api-summary,
  .demo-limitations,
  .demo-example__state-grid {
    grid-template-columns: 1fr;
  }

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

  .demo-facts__item:nth-child(2) {
    border-inline-end: 0;
  }

  .demo-facts__item:nth-child(-n + 2) {
    border-block-end: 1px solid rgb(7 26 61 / 0.25);
  }

  .demo-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 36rem) {
  .demo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-gallery,
  .demo-token-list {
    grid-template-columns: 1fr;
  }

  .demo-hero__title {
    font-size: clamp(2.55rem, 15vw, 4.4rem);
  }

  .demo-hero__visual::before {
    inset-inline-end: 0;
  }

  .demo-button {
    inline-size: 100%;
  }

  .demo-key-list div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .demo-example__pager {
    grid-template-columns: 1fr;
  }

  .demo-example__pager a,
  .demo-example__pager a:first-child,
  .demo-example__pager a:last-child {
    min-block-size: 0;
    text-align: start;
  }

  .demo-footer__separator {
    margin-inline: 0.2rem;
  }
}

@media (max-width: 24rem) {
  .demo-header,
  .demo-page__main,
  .demo-footer {
    inline-size: calc(100% - 1rem);
  }

  .demo-preview__form,
  .demo-preview__aside,
  .demo-feature-card,
  .demo-code-card,
  .demo-info-card,
  .demo-api-summary article {
    padding: 0.75rem;
  }

  .demo-hero__visual {
    padding: 1rem 0.75rem;
    box-shadow: 0.45rem 0.45rem 0 var(--_text);
  }

  .demo-preview__form .a11y-otp__slots {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    justify-content: start;
  }

  .demo-facts__list {
    grid-template-columns: 1fr;
  }

  .demo-facts__item,
  .demo-facts__item:nth-child(2) {
    border-inline-end: 0;
    border-block-end: 1px solid rgb(7 26 61 / 0.25);
  }

  .demo-facts__item:last-child {
    border-block-end: 0;
  }
}

@media (forced-colors: active) {
  .demo-page {
    background: Canvas;
  }

  .demo-button,
  .demo-card,
  .demo-hero__visual,
  .demo-preview,
  .demo-feature-card,
  .demo-code-card,
  .demo-info-card,
  .demo-limitations li,
  .demo-callout,
  .demo-footer {
    border: 1px solid CanvasText;
  }

  .demo-card:hover,
  .demo-card:focus-visible,
  .demo-button:hover {
    color: LinkText;
    background: Canvas;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-hero__visual {
    animation: none;
  }

  .demo-button,
  .demo-card,
  .demo-card__action [aria-hidden="true"],
  .demo-header__links a {
    transition-duration: 0.001ms;
  }

  .demo-button:hover,
  .demo-card:hover,
  .demo-card:focus-visible,
  .demo-card:hover .demo-card__action [aria-hidden="true"],
  .demo-card:focus-visible .demo-card__action [aria-hidden="true"] {
    transform: none;
  }
}

@media print {
  .skip-link,
  .demo-header__nav,
  .demo-hero__actions,
  .demo-preview__actions,
  .demo-callout .demo-button {
    display: none;
  }

  .demo-page {
    color: #000000;
    background: #ffffff;
  }

  .demo-section {
    break-inside: avoid;
  }
}
