@font-face {
  font-family: "ZimSaas Figtree";
  src: url("zimsaas/figtree-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

html:has(.demo-welcome[open]) {
  overflow: hidden;
}

.demo-welcome {
  --welcome-ink: #111318;
  --welcome-copy: #5b6472;
  --welcome-rule: #dfe2e7;
  --welcome-fill: #f2f3f5;
  --welcome-blue: #4f7edb;
  --welcome-blue-dark: #315fab;
  box-sizing: border-box;
  inline-size: min(34rem, calc(100% - 2rem));
  max-inline-size: none;
  max-block-size: calc(100% - 2rem);
  max-block-size: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--welcome-rule);
  border-radius: 0.75rem;
  background: #fff url("zimsaas/white-paper.svg") repeat;
  color: var(--welcome-ink);
  box-shadow: 0 4px 16px rgb(17 19 24 / 12%), 0 24px 72px rgb(17 19 24 / 26%);
  font: 400 1rem / 1.55 "ZimSaas Figtree", "Helvetica Neue", Arial, sans-serif;
  text-align: start;
}

.demo-welcome::backdrop {
  background: rgb(17 19 24 / 48%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.demo-welcome__content {
  margin: 0;
  padding: clamp(1.125rem, 5vw, 2rem);
}

.demo-welcome__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: -0.375rem;
  margin-block-end: clamp(1rem, 4vw, 1.75rem);
}

.demo-welcome__brand {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.055em;
}

.demo-welcome__dismiss {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--welcome-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.demo-welcome svg {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-welcome__title {
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(2.125rem, 6.6vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-wrap: balance;
  outline: none;
}

.demo-welcome p {
  margin: 0;
  color: var(--welcome-copy);
}

.demo-welcome .demo-welcome__intro {
  margin-block-start: 0.625rem;
  font-size: 1.0625rem;
}

.demo-welcome__details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--welcome-rule);
  border-radius: 0.5rem;
  background: var(--welcome-fill);
}

.demo-welcome__details-icon {
  display: grid;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 4px;
  background: #e2eaf9;
  color: var(--welcome-blue-dark);
}

.demo-welcome__details h3 {
  margin: 0 0 0.125rem;
  color: var(--welcome-ink);
  font: inherit;
  font-weight: 600;
  letter-spacing: normal;
}

.demo-welcome__details p,
.demo-welcome .demo-welcome__app {
  font-size: 0.9375rem;
}

.demo-welcome .demo-welcome__app {
  margin-block-start: 0.875rem;
}

.demo-welcome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-block-start: 1.5rem;
}

.demo-welcome__start,
.demo-welcome__close {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: 3.25rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.demo-welcome__start {
  background: var(--welcome-ink);
  color: #fff;
}

.demo-welcome__close {
  background: var(--welcome-fill);
  color: var(--welcome-ink);
}

.demo-welcome :is(.demo-welcome__start, .demo-welcome__close, .demo-welcome__dismiss):focus-visible {
  outline: 2px solid var(--welcome-blue);
  outline-offset: 2px;
}

@media (hover: hover) {
  .demo-welcome__start:hover {
    background: var(--welcome-blue-dark);
    color: #fff;
  }

  .demo-welcome__close:hover,
  .demo-welcome__dismiss:hover {
    background: #e7e9ed;
  }
}

@media (max-width: 27rem) {
  .demo-welcome__actions {
    flex-direction: column;
  }
}

@media (forced-colors: active) {
  .demo-welcome__start,
  .demo-welcome__close,
  .demo-welcome__dismiss {
    border-color: ButtonText;
  }
}
