html.demo-pending,
html.demo-pending body,
html.demo-on,
html.demo-on body {
  background: var(--demo-bg, #45cbb2);
  color: var(--demo-ink, #2a2426);
}

html.demo-pending #agency,
html.demo-on #agency {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#demo {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--demo-bg, #45cbb2);
  color: var(--demo-ink, #2a2426);
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

#demo[hidden] {
  display: none;
}

.demo__bar,
.demo__main,
.demo__footer {
  width: min(100% - 2rem, 40rem);
  margin-left: auto;
  margin-right: auto;
}

.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 1.15rem 0 0.25rem;
}

.demo__agency {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.demo__site {
  font-size: 0.95rem;
  font-weight: 500;
  text-underline-offset: 0.22em;
}

.demo__agency:hover,
.demo__site:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.demo__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0 2rem;
}

.demo__logo {
  display: block;
  width: auto;
  max-width: min(100%, 36rem);
  height: auto;
  max-height: min(38vh, 17rem);
  margin: 0 auto 0.35rem;
}

.demo__name {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.demo__kicker {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo__lede {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.45;
}

.demo__stores {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 18.5rem);
}

.store {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.store:hover {
  background: #000;
  transform: translateY(-1px);
}

.store:focus-visible {
  outline: 2px solid var(--demo-ink, #2a2426);
  outline-offset: 3px;
}

.store--soon,
.store--soon:hover,
.store:disabled {
  background: transparent;
  color: var(--demo-ink, #2a2426);
  -webkit-text-fill-color: var(--demo-ink, #2a2426);
  border: 1.5px solid rgba(42, 36, 38, 0.55);
  transform: none;
  cursor: default;
  opacity: 1;
}

.store__icon {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
}

.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store__kicker {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.store__name {
  font-size: 1.22rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.demo__note {
  margin: 0.9rem 0 0;
  max-width: 36ch;
  font-size: 0.95rem;
  line-height: 1.4;
}

.demo__rule {
  width: 4.5rem;
  height: 2px;
  margin: 0.45rem auto;
  border-radius: 999px;
  background: #c56a3a;
  justify-self: center;
}

.store--keep {
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.demo__footer {
  padding: 0 0 1.15rem;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.78;
}

.demo-missing {
  position: fixed;
  z-index: 30;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.35rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: var(--lake-deep, #083842);
  color: var(--mist, #e8f1f4);
  box-shadow: 0 18px 50px rgba(8, 56, 66, 0.28);
}

.demo-missing[hidden] {
  display: none;
}

.demo-missing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.demo-missing__link {
  color: #fff;
  font-weight: 560;
}

@media (min-width: 720px) {
  .demo__stores {
    width: min(100%, 19rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .demo__main {
    animation: demo-rise 0.55s ease both;
  }
}

@keyframes demo-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store {
    transition: none;
  }
}
