@font-face {
  font-family: "Dela Gothic One";
  src: url("fonts/dela-gothic-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Dela Gothic One";
  src: url("fonts/dela-gothic-one-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

#demos {
  --demo-surface: #151515;
  --demo-muted: #b8b8b8;
  --demo-gap: clamp(10px, 1.4vw, 18px);
  color: #f8f7f5;
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 84px);
}

#demos > .wrap { max-width: 1312px; }

.demo-shelf-heading {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 2.7vw, 34px);
}

#demos h2, #demos h3 {
  font-family: "Dela Gothic One", var(--heading);
  font-weight: 400;
  letter-spacing: -.025em;
}

#demos h2 {
  max-width: 27ch;
  font-size: clamp(1.8rem, 3.5vw, 3.25rem);
  line-height: 1.16;
  text-transform: none;
  text-wrap: balance;
}

.demo-shelf-heading .lead { max-width: 66ch; color: var(--demo-muted); }

.demo-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--demo-gap);
}

.demo-product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  padding: clamp(13px, 1.65vw, 20px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--demo-surface);
}

.demo-product-title { display: flex; align-items: center; gap: 10px; }
#demos .demo-product-title h3 { font-size: clamp(.95rem, 1.3vw, 1.17rem); line-height: 1.25; }

.demo-product-title svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--demo-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-product p { max-width: 42ch; color: var(--demo-muted); font-size: .925rem; line-height: 1.55; }

.demo-product-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  gap: 8px;
  min-height: 44px;
  font: 650 .875rem/1.3 var(--body);
  text-decoration: none;
}

.demo-product-link span { color: var(--accent); }
.demo-product-link:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .22em; }
.demo-product:focus-within { border-color: var(--accent); }
.demo-product:focus-within .demo-product-title svg { stroke: var(--accent); }

.demo-tour-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(18px, 2.5vw, 32px);
  padding-top: clamp(15px, 2vw, 24px);
  border-top: 1px solid var(--line);
}

.demo-tour-strip p { color: var(--demo-muted); font-size: .95rem; }
.demo-tour-strip strong { color: #f8f7f5; }
.demo-tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 20px; }
.demo-tour-actions .button { font-family: var(--body); font-size: .875rem; text-align: center; }

@media (min-width: 601px) {
  .demo-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .demo-product { grid-column: span 2; }
  .demo-product:last-child { grid-column: 2 / span 2; }
}

@media (min-width: 960px) {
  .demo-shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .demo-product:nth-child(4) { grid-column: 2 / span 2; }
  .demo-product:last-child { grid-column: 4 / span 2; }
}

@media (hover: hover) {
  .demo-product:hover { border-color: var(--accent); }
  .demo-product:hover .demo-product-title svg { stroke: var(--accent); }
}

@media (prefers-reduced-motion: no-preference) {
  .demo-product { transition: border-color .18s ease; }
  .demo-product-title svg { transition: stroke .18s ease; }
  .demo-product-link span { transition: transform .18s ease; }
  .demo-product-link:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
}

.client-showcase {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas: "copy screen" "tabs screen" "demo screen";
  row-gap: clamp(15px, 2vw, 26px);
}

.client-showcase .client-copy { grid-area: copy; align-self: end; }
.client-showcase .client-controls { grid-area: tabs; margin: 0; }
.client-showcase .client-screens {
  grid-area: screen;
  width: min(100%, 364px);
  min-width: 0;
  justify-self: center;
}
.client-showcase .client-action { grid-area: demo; align-self: start; }

.client-showcase .client-controls button {
  padding-inline: 12px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.client-device {
  position: relative;
  padding: 7px;
  border: 1px solid #625b5a;
  border-radius: 34px;
  background: #0c0b0b;
  box-shadow: inset 0 0 0 2px #272525;
}

.client-device::before {
  content: "";
  position: absolute;
  inset: 23% -3px auto auto;
  width: 2px;
  height: 8%;
  border-radius: 0 2px 2px 0;
  background: #625b5a;
}

.client-device iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 26px;
  opacity: 0;
  pointer-events: none;
}
.client-device { height: clamp(462px, 71svh, 656px); }
.client-device iframe.is-ready { opacity: 1; pointer-events: auto; }
.client-device iframe:focus-visible { outline-offset: -3px; }
.client-embed-status {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 26px;
  color: var(--muted);
  background: #151212;
  font: .85rem/1.55 var(--body);
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .client-device iframe { transition: opacity .24s ease-out; }
}

@media (max-width: 840px) {
  .client-showcase {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "copy" "tabs" "screen" "demo";
  }

  .client-showcase .client-screens { width: min(100%, 340px); }
  .client-device { height: clamp(420px, 67svh, 590px); }
}

@media (max-width: 680px) {
  .client-showcase .client-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

