.showcase {
  margin: 0 auto 27px;
  max-width: 430px;
}

.brand img {
  display: block;
  width: 154px;
  height: auto;
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f8fc;
}

.showcase-tab {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 11px/1.2 Montserrat, Arial, sans-serif;
  padding: 11px 6px;
  transition: background .2s, color .2s, box-shadow .2s;
}

.showcase-tab.is-selected {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 7px rgba(16, 34, 61, .1);
}

.showcase-tab:focus-visible {
  outline: 3px solid #86bdfb;
  outline-offset: 2px;
}

.showcase-panel {
  padding-top: 18px;
  animation: enter .25s ease-out;
}

.showcase-panel[hidden] {
  display: none;
}

.showcase-phone {
  width: min(100%, 290px);
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 27px;
  background: var(--ink);
  box-shadow: 0 17px 34px rgba(16, 34, 61, .2);
  line-height: 0;
}

.showcase-phone img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  object-position: top;
}

.showcase-phone.is-whatsapp img {
  object-position: center;
}

.showcase-phone.is-dashboard {
  height: 430px;
}

.showcase-phone.is-dashboard img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 78%;
}

.showcase-video {
  width: min(100%, 290px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 27px;
  background: var(--ink);
  box-shadow: 0 17px 34px rgba(16, 34, 61, .2);
}

.video-launch,
.youtube-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-launch {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: #06152b;
}

.video-launch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #f00;
  color: #fff;
  font-size: 25px;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.video-caption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(0, 16, 38, .8);
  color: #fff;
  font: 700 12px Montserrat, Arial, sans-serif;
}

.video-launch:focus-visible {
  outline: 3px solid #86bdfb;
  outline-offset: -6px;
}

.video-fallback {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.showcase-panel > p {
  max-width: 380px;
  margin: 13px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 540px) {
  .brand img {
    width: 132px;
  }

  .showcase {
    margin-bottom: 23px;
  }

  .showcase-tabs {
    gap: 3px;
  }

  .showcase-tab {
    padding: 10px 3px;
    font-size: 9px;
  }

  .showcase-phone {
    width: min(82vw, 272px);
  }

  .showcase-phone img {
    max-height: 390px;
  }

  .showcase-phone.is-dashboard {
    height: 390px;
  }

  .showcase-video {
    width: min(82vw, 272px);
  }

  .showcase-panel > p {
    font-size: 12px;
  }
}
