#demos {
  --demo-gutter: clamp(1rem, 3vw, 2.75rem);
  background: var(--h34-blue);
  color: white;
  width: min(74rem, calc(100% - 2rem));
  max-height: 90dvh;
  overscroll-behavior: contain;
  scroll-padding-top: 4.75rem;
}

#demos .h34-dialog-head {
  padding: .5rem var(--demo-gutter);
  color: white;
  background: var(--h34-blue);
  border-color: rgb(255 255 255 / 35%);
  font-size: .875rem;
  letter-spacing: .12em;
}

#demos .h34-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 55%);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
}

#demos .h34-dialog-body {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--demo-gutter);
}

#demos .demo-intro h2 {
  margin: 0 0 1.25rem;
  color: var(--h34-lime);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

#demos :is(.demo-intro, .demo-ending) > p {
  max-width: 65ch;
  margin: .45rem 0;
  color: white;
  font-size: 1.0625rem;
  line-height: 1.55;
}

#demos :is(.demo-intro, .demo-ending) > .demo-question {
  max-width: 45ch;
  margin: 1.25rem 0 0;
  color: var(--h34-lime);
  font-size: clamp(1.375rem, 2.35vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}

#demos .demo-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
}

#demos .h34-tool-item {
  --demo-accent: var(--h34-lime);
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  display: grid;
  gap: .95rem;
  background: white;
  border: 0;
  border-top: .375rem solid var(--demo-accent);
  border-radius: .75rem;
}

#demos [data-demo="motiva"] {
  --demo-accent: #ff6b35;
}

#demos .demo-product {
  margin: 0;
  color: var(--h34-blue);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .11em;
}

#demos .h34-tool-item h3 {
  margin: 0;
  color: var(--h34-blue);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

#demos .demo-description {
  margin: 0;
  color: var(--h34-ink);
  font-size: 1rem;
  line-height: 1.55;
}

#demos .h34-textlink {
  display: flex;
  justify-content: center;
  align-self: stretch;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: .625rem;
  background: var(--demo-accent);
  color: var(--h34-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
}

#demos .h34-textlink:hover { text-decoration: underline; }

#demos .demo-details {
  padding-top: .85rem;
  border-top: 1px solid var(--h34-line);
}

#demos .demo-details p {
  margin: 0;
  color: var(--h34-muted);
  font-size: .875rem;
  line-height: 1.5;
}

#demos .demo-details p + p { margin-top: .65rem; }
#demos .demo-details a { color: var(--h34-blue); font-size: inherit; text-decoration: underline; }

#demos .demo-ending {
  border-top: 1px solid rgb(255 255 255 / 35%);
  padding-top: 1.25rem;
}

#demos .demo-ending > .demo-question { margin-top: .5rem; }
#demos .ekade-support-note { margin-top: 1.5rem; color: white; }
#demos :is(a, button):focus-visible { outline: 3px solid var(--h34-lime); outline-offset: 3px; }
#demos .h34-tool-item a:focus-visible { outline-color: var(--h34-blue); }

@media (min-width: 58rem) {
  #demos .demo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #demos .h34-tool-item { grid-row: span 5; grid-template-rows: subgrid; }
}

@media (max-width: 35rem) {
  #demos { width: calc(100% - 1rem); max-width: calc(100% - 1rem); max-height: 94dvh; }
}
