.demo-landing {
  width: min(1040px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.4rem;
  padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  display: grid;
  gap: 1.25rem;
  position: relative;
  box-sizing: border-box;
  overflow-x: clip;
  isolation: isolate;
}

.hero-cinematic[data-hero-intro] {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* Static themed background for demo landing + wizard (no animation). */
.hero-cinematic[data-hero-intro]:has(
    #demo-landing:not([hidden]):not(.hidden)
  )::before,
.hero-cinematic[data-hero-intro]:has(
    #demo-flow:not([hidden]):not(.hidden)
  )::before {
  content: "";
  position: absolute;
  inset: -22% -16% -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 70% 52% at 18% 42%,
      rgba(76, 227, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      ellipse 72% 56% at 84% 24%,
      rgba(223, 122, 254, 0.24),
      transparent 62%
    ),
    radial-gradient(
      ellipse 60% 50% at 52% 82%,
      rgba(129, 74, 200, 0.2),
      transparent 60%
    );
  filter: blur(44px);
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 60%,
    rgba(0, 0, 0, 0.72) 72%,
    transparent 86%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 60%,
    rgba(0, 0, 0, 0.72) 72%,
    transparent 86%
  );
  animation: none;
}

.hero-cinematic[data-hero-intro]:has(
    #demo-landing:not([hidden]):not(.hidden)
  )::after,
.hero-cinematic[data-hero-intro]:has(
    #demo-flow:not([hidden]):not(.hidden)
  )::after {
  content: "";
  position: absolute;
  inset: -30% -24%;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(76, 227, 255, 0.2),
      rgba(223, 122, 254, 0.22),
      rgba(129, 74, 200, 0.18),
      rgba(76, 227, 255, 0.2)
    ),
    linear-gradient(
      112deg,
      transparent 18%,
      rgba(76, 227, 255, 0.12) 45%,
      rgba(223, 122, 254, 0.14) 56%,
      transparent 84%
    );
  mix-blend-mode: screen;
  filter: blur(62px);
  opacity: 0.46;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.64) 68%,
    transparent 83%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 55%,
    rgba(0, 0, 0, 0.64) 68%,
    transparent 83%
  );
  animation: none;
}

.hero-cinematic[data-hero-intro] > .demo-landing,
.hero-cinematic[data-hero-intro] > .user-input-section {
  position: relative;
  z-index: 1;
}

.demo-landing[hidden],
.demo-landing.hidden {
  display: none !important;
}

.demo-landing__hero {
  display: grid;
  gap: 0.72rem;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.demo-landing__title {
  margin: 0;
  width: min(18ch, 100%);
  max-width: 100%;
  font-size: clamp(1.35rem, 4vw + 0.35rem, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.demo-landing__points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.demo-landing__points > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 13, 26, 0.55);
  padding: 0.35rem 0.75rem;
  color: #c8cfdf;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  max-width: 100%;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.demo-landing__points-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #8fe9ff;
}

/* Access card: single centered column now that the static steps panel lives in the guided tour instead */
.demo-landing__row {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: min(480px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.demo-access-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, var(--bg-card-2), rgba(129, 74, 200, 0.1)),
    radial-gradient(
      ellipse 120% 80% at 100% 0%,
      rgba(223, 122, 254, 0.12),
      transparent 58%
    );
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 0.6rem;
  text-align: left;
  min-height: 0;
}

@media (min-width: 900px) {
  .demo-access-card {
    height: 100%;
    align-content: start;
  }
}

.demo-access-card__label {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.demo-access-card__field {
  display: grid;
  gap: 0.35rem;
  overflow: visible;
}

/* Genre tag picker — multi-select chips on the landing access card (optional). */
.demo-genre-picker {
  position: relative;
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

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

.demo-genre-picker__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.demo-genre-picker__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.48rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(236, 240, 255, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.demo-genre-picker__tag:hover:not(:disabled):not([aria-checked="true"]) {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  transform: translateY(-1px);
}

.demo-genre-picker__tag:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.demo-genre-picker__tag:focus-visible {
  border-color: rgba(223, 122, 254, 0.72);
  box-shadow: 0 0 0 3px rgba(223, 122, 254, 0.2);
}

.demo-genre-picker__tag[aria-checked="true"] {
  border-color: rgba(196, 110, 255, 0.95);
  background: rgba(129, 74, 200, 0.38);
  color: #fff;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(223, 122, 254, 0.35),
    0 0 18px rgba(223, 122, 254, 0.28);
}

.demo-genre-picker__tag[aria-checked="true"]:hover:not(:disabled) {
  border-color: rgba(223, 122, 254, 1);
  background: rgba(129, 74, 200, 0.48);
}

.demo-genre-picker__tag:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.demo-genre-picker__status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  text-align: center;
}

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

.demo-access-card__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.78rem 0.9rem;
  outline: none;
}

.demo-access-card__input:focus {
  border-color: rgba(223, 122, 254, 0.45);
  box-shadow: 0 0 0 3px rgba(223, 122, 254, 0.12);
}

.demo-access-card__error {
  margin: 0;
  color: #ff9ab5;
  font-size: 0.82rem;
}

.demo-access-card__error.hidden {
  display: none;
}

.demo-consent {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0.1rem;
}

.demo-consent__heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-consent__item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.demo-consent__item:hover {
  border-color: rgba(76, 227, 255, 0.3);
  background: rgba(76, 227, 255, 0.05);
}

.demo-consent__item:has(.demo-consent__checkbox:checked) {
  border-color: rgba(76, 227, 255, 0.45);
  background: rgba(76, 227, 255, 0.09);
}

.demo-consent__checkbox {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.demo-consent__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(76, 227, 255, 0.3), rgba(129, 74, 200, 0.2));
  color: #8fe9ff;
}

.demo-consent__icon svg {
  width: 16px;
  height: 16px;
}

.demo-consent__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.demo-consent__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.demo-consent__desc {
  font-size: 0.78rem;
  line-height: 1.42;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.demo-access-card__btn {
  width: fit-content;
  min-width: 140px;
  justify-self: center;
}

.demo-access-card__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

@media (pointer: coarse) {
  .demo-access-card__btn {
    min-height: 44px;
    padding-block: 0.62rem;
  }
}

/* Tablet & smaller: full-width headline, comfortable reading */
@media (max-width: 899px) {
  .demo-landing {
    gap: 1.05rem;
    padding-top: 0.5rem;
  }

  .demo-landing__hero {
    gap: 0.65rem;
  }

  .demo-landing__title {
    width: 100%;
    max-width: 100%;
  }

  .demo-landing__points {
    justify-content: center;
  }

  .demo-landing__row {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .demo-landing__points {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .demo-landing__points > span {
    font-size: 0.74rem;
    padding: 0.42rem 0.65rem;
  }
}

@media (max-width: 520px) {
  .demo-landing {
    gap: 0.95rem;
    padding-inline: max(0.65rem, env(safe-area-inset-left, 0px))
      max(0.65rem, env(safe-area-inset-right, 0px));
  }

  .demo-access-card {
    padding: 0.85rem 0.75rem;
  }

  .demo-access-card__btn {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    box-sizing: border-box;
  }

  .demo-access-card__label {
    font-size: 0.84rem;
  }

  .hero-cinematic[data-hero-intro]:has(
      #demo-landing:not([hidden]):not(.hidden)
    )::before {
    filter: blur(34px);
    opacity: 0.72;
  }

  .hero-cinematic[data-hero-intro]:has(
      #demo-landing:not([hidden]):not(.hidden)
    )::after {
    filter: blur(48px);
    opacity: 0.48;
  }

  .hero-cinematic[data-hero-intro]:has(
      #demo-flow:not([hidden]):not(.hidden)
    )::before {
    filter: blur(34px);
    opacity: 0.6;
  }

  .hero-cinematic[data-hero-intro]:has(
      #demo-flow:not([hidden]):not(.hidden)
    )::after {
    filter: blur(48px);
    opacity: 0.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic[data-hero-intro]:has(
      #demo-landing:not([hidden]):not(.hidden)
    )::before,
  .hero-cinematic[data-hero-intro]:has(
      #demo-landing:not([hidden]):not(.hidden)
    )::after,
  .hero-cinematic[data-hero-intro]:has(
      #demo-flow:not([hidden]):not(.hidden)
    )::before,
  .hero-cinematic[data-hero-intro]:has(
      #demo-flow:not([hidden]):not(.hidden)
    )::after {
    animation: none !important;
  }
}
