.demo-roleplay-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 11vw, 128px) 20px 64px;
  /* background: #fff; */
  color: #0f172a;
}

.demo-roleplay-hero *,
.demo-roleplay-hero *::before,
.demo-roleplay-hero *::after {
  box-sizing: border-box;
}

.demo-roleplay-shell {
  width: min(1024px, 100%);
  margin: 0 auto;
  text-align: center;
}

.demo-roleplay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
  width: min(192px, 100%);
  min-height: 29px;
  padding: 6px 20px 6px;
  overflow: hidden;
  border: .5px solid #8993d4;
  border-radius: 14.5px;
  /* background: #f8f7f6; */
  backdrop-filter: blur(11.9px);
  -webkit-backdrop-filter: blur(11.9px);
}

.demo-roleplay-chip span {
  display: block;
  width: 100%;
  background: linear-gradient(108.84deg, #4242c6 0%, #8282f6 39.9%, #0e24b3 87.16%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font: 400 14px/16px Inter;
  text-align: center;
  white-space: nowrap;
}

.demo-roleplay-start svg {
  width: 14.25px;
  height: 14.25px;
  flex: 0 0 auto;
}

.demo-roleplay-hero h1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 0 18px;
  color: #181c21;
  font: 700 clamp(42px, 7vw, 60px)/1 Inter, system-ui, sans-serif;
  letter-spacing: -.96px;
  text-align: center;
  white-space: pre-wrap;
}

.demo-roleplay-hero h1 span {
  display: block;
}

.demo-roleplay-hero h1 span:last-child {
  background: linear-gradient(95deg, #4242c6 0%, #8282f6 39.9%, #0e24b3 87.16%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.demo-roleplay-copy {
  max-width: 742px;
  margin: 0 auto 36px;
  color: #575e75;
  font: 400 18px/28.8px Inter, system-ui, sans-serif;
  text-align: center;
}

.demo-roleplay-prompt {
  max-width: 768px;
  margin: 0 auto 28px;
  text-align: left;
}

.demo-roleplay-prompt-label {
  display: block;
  margin: 0 0 8px 4px;
  color: #475569;
  font: 700 12px/1 Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.demo-roleplay-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dde3ff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 15px rgba(13, 3, 42, .05);
}

.demo-roleplay-input-shell:focus-within {
  border-color: #9aa9ff;
  box-shadow: 0 0 0 4px rgba(62, 87, 218, .1), 0 10px 15px rgba(13, 3, 42, .05);
}

.demo-roleplay-input-shell input {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  /* padding: 14px 28px; */
  border: 0;
  outline: 0;
  background: transparent;
  color: #181c21;
  font: 400 16px/normal Inter, system-ui, sans-serif;
  overflow: hidden;
}

.demo-roleplay-placeholder {
  position: absolute;
  left: 24px;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%);
  color: #757686;
  pointer-events: none;
  font: 400 16px/normal Inter, system-ui, sans-serif;
}

.demo-roleplay-placeholder-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #3e57da;
  opacity: .7;
  animation: demoPlaceholderBlink 1s step-end infinite;
}

.demo-roleplay-input-shell.has-value .demo-roleplay-placeholder,
.demo-roleplay-input-shell:focus-within .demo-roleplay-placeholder {
  display: none;
}

.demo-roleplay-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 164px;
  min-height: 48px;
  padding: 12px 32px;
  border: 0;
  border-radius: 12px;
  background: #3e57da;
  color: #fff;
  cursor: pointer;
  font: 400 16px/24px Inter, system-ui, sans-serif;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.demo-roleplay-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-roleplay-hint {
  margin: 8px 0 0 4px;
  color: #64748b;
  font: 500 12px/1.4 Inter, system-ui, sans-serif;
}

.demo-roleplay-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 22px;
}

.demo-roleplay-divider span {
  display: none;
}

.demo-roleplay-divider em {
  color: #575e75;
  font: 400 12px/28.8px Inter, system-ui, sans-serif;
  font-style: normal;
  text-align: center;
}

.demo-roleplay-no-signup {
  margin: -34px auto 38px;
  color: #575e75;
  font: 400 12px/28.8px Inter, system-ui, sans-serif;
  text-align: center;
}

.demo-roleplay-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 16px;
}

.demo-roleplay-persona {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(320px, 100%);
  min-height: 176px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(221, 227, 255, .5);
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  color: #181c21;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(4.12px);
  -webkit-backdrop-filter: blur(4.12px);
}

.demo-roleplay-persona:hover,
.demo-roleplay-persona:focus-visible {
  border-color: #4242c6;
  box-shadow: 0 4px 4px rgba(83, 100, 186, .13);
}

.demo-roleplay-persona:focus-visible {
  outline: 0;
}

.demo-roleplay-persona-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-roleplay-persona img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.demo-roleplay-persona b {
  display: block;
  color: #181c21;
  font: 600 14px/22.16px Inter, system-ui, sans-serif;
}

.demo-roleplay-persona small {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  color: #575e75;
  font: 400 10px/19px Inter, system-ui, sans-serif;
}

.demo-roleplay-persona i {
  align-self: start;
  padding: 3.283px 6.566px;
  border-radius: 3.283px;
  font: 600 9.849px/9.849px Inter, system-ui, sans-serif;
  font-style: normal;
}

.demo-roleplay-persona i.is-hard {
  background: #fee2e2;
  color: #dc2626;
}

.demo-roleplay-persona i.is-medium {
  background: #fef3c7;
  color: #ca8a04;
}

.demo-roleplay-persona i.is-easy {
  background: #dcfce7;
  color: #16a34a;
}

.demo-roleplay-persona-quote {
  display: block;
  min-height: 38px;
  color: #575e75;
  font: 400 12px/19px Inter, system-ui, sans-serif;
}

.demo-roleplay-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 48px;
  margin-top: auto;
}

.demo-roleplay-persona-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #ebeef6;
  color: #444654;
  font: 400 8px/15px Inter, system-ui, sans-serif;
  font-style: normal;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.demo-roleplay-persona-call {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url("../img/demo-personas/call-button.svg") center / contain no-repeat;
  pointer-events: auto;
}

#demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #0f172a;
}

@keyframes demoPulse {
  0%, 100% { opacity: .95; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.35); }
}

@keyframes demoPlaceholderBlink {
  0%, 100% { opacity: .7; }
  50% { opacity: 0; }
}

@media (max-width: 760px) {
  .demo-roleplay-hero {
    min-height: auto;
    padding: 96px 16px 42px;
  }

  .demo-roleplay-shell {
    width: 100%;
  }

  .demo-roleplay-chip {
    width: auto;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 6px 18px;
  }

  .demo-roleplay-chip span {
    white-space: normal;
  }

  .demo-roleplay-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 11vw, 42px);
    line-height: 1.04;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .demo-roleplay-copy {
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 23px;
  }

  .demo-roleplay-prompt {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .demo-roleplay-input-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .demo-roleplay-input-shell input {
    height: 46px;
    min-height: 46px;
    padding: 0 4px;
    font-size: 15px;
  }

  .demo-roleplay-placeholder {
    left: 14px;
    right: 14px;
    top: 33px;
    transform: none;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .demo-roleplay-start {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
    padding: 12px 18px;
  }

  .demo-roleplay-divider {
    margin-bottom: 18px;
  }

  .demo-roleplay-personas {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-roleplay-persona {
    width: 100%;
    min-height: 0;
    padding: 16px;
  }

  .demo-roleplay-persona-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .demo-roleplay-persona-head > span {
    min-width: 0;
  }

  .demo-roleplay-persona b,
  .demo-roleplay-persona small {
    overflow-wrap: anywhere;
  }

  .demo-roleplay-persona-tags {
    padding-right: 46px;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .demo-roleplay-hero {
    min-height: auto;
    padding: 104px 28px 56px;
  }

  .demo-roleplay-shell {
    width: 100%;
  }

  .demo-roleplay-hero h1 {
    font-size: 52px;
    line-height: 1.04;
  }

  .demo-roleplay-prompt {
    max-width: 720px;
  }

  .demo-roleplay-personas {
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 16px;
  }

  .demo-roleplay-persona {
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  .demo-roleplay-personas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-roleplay-persona {
    width: 100%;
  }
}
